You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@@ -0,0 +1,74 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
//
|
||||
|
||||
// COMPLETE
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
public enum AccessibleEvents {
|
||||
SystemSound = 1,
|
||||
SystemAlert = 2,
|
||||
SystemForeground = 3,
|
||||
SystemMenuStart = 4,
|
||||
SystemMenuEnd = 5,
|
||||
SystemMenuPopupStart = 6,
|
||||
SystemMenuPopupEnd = 7,
|
||||
SystemCaptureStart = 8,
|
||||
SystemCaptureEnd = 9,
|
||||
SystemMoveSizeStart = 10,
|
||||
SystemMoveSizeEnd = 11,
|
||||
SystemContextHelpStart = 12,
|
||||
SystemContextHelpEnd = 13,
|
||||
SystemDragDropStart = 14,
|
||||
SystemDragDropEnd = 15,
|
||||
SystemDialogStart = 16,
|
||||
SystemDialogEnd = 17,
|
||||
SystemScrollingStart = 18,
|
||||
SystemScrollingEnd = 19,
|
||||
SystemSwitchStart = 20,
|
||||
SystemSwitchEnd = 21,
|
||||
SystemMinimizeStart = 22,
|
||||
SystemMinimizeEnd = 23,
|
||||
Create = 32768,
|
||||
Destroy = 32769,
|
||||
Show = 32770,
|
||||
Hide = 32771,
|
||||
Reorder = 32772,
|
||||
Focus = 32773,
|
||||
Selection = 32774,
|
||||
SelectionAdd = 32775,
|
||||
SelectionRemove = 32776,
|
||||
SelectionWithin = 32777,
|
||||
StateChange = 32778,
|
||||
LocationChange = 32779,
|
||||
NameChange = 32780,
|
||||
DescriptionChange = 32781,
|
||||
ValueChange = 32782,
|
||||
ParentChange = 32783,
|
||||
HelpChange = 32784,
|
||||
DefaultActionChange = 32785,
|
||||
AcceleratorChange = 32786
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
|
||||
|
||||
// COMPLETE
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
public enum AccessibleNavigation {
|
||||
Up = 1,
|
||||
Down = 2,
|
||||
Left = 3,
|
||||
Right = 4,
|
||||
Next = 5,
|
||||
Previous = 6,
|
||||
FirstChild = 7,
|
||||
LastChild = 8
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,98 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
|
||||
|
||||
// COMPLETE
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
public enum AccessibleRole {
|
||||
None = 0,
|
||||
TitleBar = 1,
|
||||
MenuBar = 2,
|
||||
ScrollBar = 3,
|
||||
Grip = 4,
|
||||
Sound = 5,
|
||||
Cursor = 6,
|
||||
Caret = 7,
|
||||
Alert = 8,
|
||||
Window = 9,
|
||||
Client = 10,
|
||||
MenuPopup = 11,
|
||||
MenuItem = 12,
|
||||
ToolTip = 13,
|
||||
Application = 14,
|
||||
Document = 15,
|
||||
Pane = 16,
|
||||
Chart = 17,
|
||||
Dialog = 18,
|
||||
Border = 19,
|
||||
Grouping = 20,
|
||||
Separator = 21,
|
||||
ToolBar = 22,
|
||||
StatusBar = 23,
|
||||
Table = 24,
|
||||
ColumnHeader = 25,
|
||||
RowHeader = 26,
|
||||
Column = 27,
|
||||
Row = 28,
|
||||
Cell = 29,
|
||||
Link = 30,
|
||||
HelpBalloon = 31,
|
||||
Character = 32,
|
||||
List = 33,
|
||||
ListItem = 34,
|
||||
Outline = 35,
|
||||
OutlineItem = 36,
|
||||
PageTab = 37,
|
||||
PropertyPage = 38,
|
||||
Indicator = 39,
|
||||
Graphic = 40,
|
||||
StaticText = 41,
|
||||
Text = 42,
|
||||
PushButton = 43,
|
||||
CheckButton = 44,
|
||||
RadioButton = 45,
|
||||
ComboBox = 46,
|
||||
DropList = 47,
|
||||
ProgressBar = 48,
|
||||
Dial = 49,
|
||||
HotkeyField = 50,
|
||||
Slider = 51,
|
||||
SpinButton = 52,
|
||||
Diagram = 53,
|
||||
Animation = 54,
|
||||
Equation = 55,
|
||||
ButtonDropDown = 56,
|
||||
ButtonMenu = 57,
|
||||
ButtonDropDownGrid= 58,
|
||||
WhiteSpace = 59,
|
||||
PageTabList = 60,
|
||||
Clock = 61,
|
||||
Default = -1,
|
||||
SplitButton = 62,
|
||||
IpAddress = 63,
|
||||
OutlineButton = 64
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
|
||||
|
||||
// COMPLETE
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
[Flags]
|
||||
public enum AccessibleSelection {
|
||||
None = 0x00000000,
|
||||
TakeFocus = 0x00000001,
|
||||
TakeSelection = 0x00000002,
|
||||
ExtendSelection = 0x00000004,
|
||||
AddSelection = 0x00000008,
|
||||
RemoveSelection = 0x00000010
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
|
||||
|
||||
// COMPLETE
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
|
||||
[Flags]
|
||||
public enum AccessibleStates {
|
||||
None = 0x00000000,
|
||||
Unavailable = 0x00000001,
|
||||
Selected = 0x00000002,
|
||||
Focused = 0x00000004,
|
||||
Pressed = 0x00000008,
|
||||
Checked = 0x00000010,
|
||||
Mixed = 0x00000020,
|
||||
Indeterminate = 0x00000020,
|
||||
ReadOnly = 0x00000040,
|
||||
HotTracked = 0x00000080,
|
||||
Default = 0x00000100,
|
||||
Expanded = 0x00000200,
|
||||
Collapsed = 0x00000400,
|
||||
Busy = 0x00000800,
|
||||
Floating = 0x00001000,
|
||||
Marqueed = 0x00002000,
|
||||
Animated = 0x00004000,
|
||||
Invisible = 0x00008000,
|
||||
Offscreen = 0x00010000,
|
||||
Sizeable = 0x00020000,
|
||||
Moveable = 0x00040000,
|
||||
SelfVoicing = 0x00080000,
|
||||
Focusable = 0x00100000,
|
||||
Selectable = 0x00200000,
|
||||
Linked = 0x00400000,
|
||||
Traversed = 0x00800000,
|
||||
MultiSelectable = 0x01000000,
|
||||
ExtSelectable = 0x02000000,
|
||||
AlertLow = 0x04000000,
|
||||
AlertMedium = 0x08000000,
|
||||
AlertHigh = 0x10000000,
|
||||
Protected = 0x20000000,
|
||||
[Obsolete]
|
||||
Valid = 0x3FFFFFFF,
|
||||
HasPopup = 0x40000000
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok (pbartok@novell.com)
|
||||
//
|
||||
//
|
||||
|
||||
// COMPLETE
|
||||
|
||||
using System.Drawing;
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
public sealed class AmbientProperties {
|
||||
#region Local Variables
|
||||
private Color fore_color;
|
||||
private Color back_color;
|
||||
private Font font;
|
||||
private Cursor cursor;
|
||||
#endregion // Local Variables
|
||||
|
||||
#region Public Constructors
|
||||
public AmbientProperties() {
|
||||
}
|
||||
#endregion // Public Constructors
|
||||
|
||||
#region Public Instance Properties
|
||||
public Color BackColor {
|
||||
get {
|
||||
return back_color;
|
||||
}
|
||||
|
||||
set {
|
||||
back_color = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Cursor Cursor {
|
||||
get {
|
||||
return cursor;
|
||||
}
|
||||
|
||||
set {
|
||||
cursor = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Font Font {
|
||||
get {
|
||||
return font;
|
||||
}
|
||||
|
||||
set {
|
||||
font = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Color ForeColor {
|
||||
get {
|
||||
return fore_color;
|
||||
}
|
||||
|
||||
set {
|
||||
fore_color = value;
|
||||
}
|
||||
}
|
||||
#endregion // Public Instance Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004-2005 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
|
||||
|
||||
// COMPLETE
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
[Flags]
|
||||
[Editor("System.Windows.Forms.Design.AnchorEditor, " + Consts.AssemblySystem_Design, typeof(System.Drawing.Design.UITypeEditor))]
|
||||
public enum AnchorStyles {
|
||||
None = 0x00000000,
|
||||
Top = 0x00000001,
|
||||
Bottom = 0x00000002,
|
||||
Left = 0x00000004,
|
||||
Right = 0x00000008
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004-2005 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
|
||||
|
||||
// COMPLETE
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
[ComVisible(true)]
|
||||
public enum Appearance {
|
||||
Normal = 0,
|
||||
Button = 1
|
||||
}
|
||||
}
|
||||
1101
mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs
Normal file
1101
mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,118 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
public class ApplicationContext : IDisposable
|
||||
{
|
||||
#region Local Variables
|
||||
Form main_form;
|
||||
object tag;
|
||||
bool thread_exit_raised;
|
||||
|
||||
#endregion // Local Variables
|
||||
|
||||
#region Public Constructors & Destructors
|
||||
public ApplicationContext() : this(null) {
|
||||
}
|
||||
|
||||
public ApplicationContext(Form mainForm) {
|
||||
MainForm = mainForm; // Use property to get event handling setup
|
||||
}
|
||||
|
||||
~ApplicationContext() {
|
||||
this.Dispose(false);
|
||||
}
|
||||
#endregion // Public Constructors & Destructors
|
||||
|
||||
#region Public Instance Properties
|
||||
public Form MainForm {
|
||||
get {
|
||||
return main_form;
|
||||
}
|
||||
|
||||
set {
|
||||
if (main_form != value) {
|
||||
// Catch when the form is destroyed so we can fire OnMainFormClosed
|
||||
|
||||
if (main_form != null) {
|
||||
main_form.HandleDestroyed -= new EventHandler(OnMainFormClosed);
|
||||
}
|
||||
main_form = value;
|
||||
if (main_form != null) {
|
||||
main_form.HandleDestroyed += new EventHandler(OnMainFormClosed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[BindableAttribute (true)]
|
||||
[DefaultValue (null)]
|
||||
[LocalizableAttribute (false)]
|
||||
[TypeConverterAttribute (typeof(StringConverter))]
|
||||
public Object Tag {
|
||||
get { return tag; }
|
||||
set { tag = value; }
|
||||
}
|
||||
#endregion // Public Instance Properties
|
||||
|
||||
#region Public Instance Methods
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
public void ExitThread() {
|
||||
ExitThreadCore();
|
||||
}
|
||||
#endregion // Public Instance Methods
|
||||
|
||||
#region Protected Instance Methods
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
MainForm = null;
|
||||
tag = null;
|
||||
}
|
||||
|
||||
protected virtual void ExitThreadCore() {
|
||||
if (Application.MWFThread.Current.Context == this)
|
||||
XplatUI.PostQuitMessage(0);
|
||||
if (!thread_exit_raised && ThreadExit != null) {
|
||||
thread_exit_raised = true;
|
||||
ThreadExit(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void OnMainFormClosed(object sender, EventArgs e) {
|
||||
if (!MainForm.RecreatingHandle)
|
||||
ExitThreadCore();
|
||||
}
|
||||
#endregion // Public Instance Methods
|
||||
|
||||
#region Events
|
||||
public event EventHandler ThreadExit;
|
||||
#endregion // Events
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
//
|
||||
|
||||
// COMPLETE
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
[Flags]
|
||||
[ComVisible(true)]
|
||||
public enum ArrangeDirection {
|
||||
Left = 0,
|
||||
Right = 0,
|
||||
Down = 4,
|
||||
Up = 4
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
|
||||
//
|
||||
// Authors:
|
||||
// Peter Bartok pbartok@novell.com
|
||||
//
|
||||
//
|
||||
|
||||
// COMPLETE
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
[Flags]
|
||||
public enum ArrangeStartingPosition {
|
||||
BottomLeft = 0,
|
||||
BottomRight = 1,
|
||||
TopLeft = 2,
|
||||
TopRight = 3,
|
||||
Hide = 8
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// ArrowDirection.cs
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2006 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Jonathan Pobst (monkey@jpobst.com)
|
||||
//
|
||||
|
||||
|
||||
namespace System.Windows.Forms
|
||||
{
|
||||
public enum ArrowDirection
|
||||
{
|
||||
Left = 0,
|
||||
Up = 1,
|
||||
Right = 16,
|
||||
Down = 17
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Jackson Harper (jackson@ximian.com)
|
||||
|
||||
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
|
||||
internal class AsyncMethodData {
|
||||
public IntPtr Handle;
|
||||
public Delegate Method;
|
||||
public object [] Args;
|
||||
public AsyncMethodResult Result;
|
||||
public ExecutionContext Context;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Jackson Harper (jackson@ximian.com)
|
||||
|
||||
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
|
||||
internal class AsyncMethodResult : IAsyncResult {
|
||||
|
||||
private ManualResetEvent handle;
|
||||
private object state;
|
||||
private bool completed;
|
||||
private object return_value;
|
||||
private Exception exception;
|
||||
|
||||
public AsyncMethodResult ()
|
||||
{
|
||||
handle = new ManualResetEvent (false);
|
||||
}
|
||||
|
||||
public virtual WaitHandle AsyncWaitHandle {
|
||||
get {
|
||||
lock (this) {
|
||||
return handle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public object AsyncState {
|
||||
get { return state; }
|
||||
set { state = value; }
|
||||
}
|
||||
|
||||
public bool CompletedSynchronously {
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
public bool IsCompleted {
|
||||
get {
|
||||
lock (this) {
|
||||
return completed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public object EndInvoke ()
|
||||
{
|
||||
lock (this) {
|
||||
if (completed) {
|
||||
if (exception == null)
|
||||
return return_value;
|
||||
else
|
||||
throw exception;
|
||||
}
|
||||
}
|
||||
handle.WaitOne ();
|
||||
|
||||
if (exception != null)
|
||||
throw exception;
|
||||
|
||||
return return_value;
|
||||
}
|
||||
|
||||
public void Complete (object result)
|
||||
{
|
||||
lock (this) {
|
||||
completed = true;
|
||||
return_value = result;
|
||||
handle.Set ();
|
||||
}
|
||||
}
|
||||
|
||||
public void CompleteWithException (Exception ex)
|
||||
{
|
||||
lock (this) {
|
||||
completed = true;
|
||||
exception = ex;
|
||||
handle.Set ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// AutoCompleteMode.cs
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2006 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Jonathan Pobst (monkey@jpobst.com)
|
||||
//
|
||||
|
||||
namespace System.Windows.Forms
|
||||
{
|
||||
public enum AutoCompleteMode
|
||||
{
|
||||
None = 0,
|
||||
Suggest = 1,
|
||||
Append = 2,
|
||||
SuggestAppend = 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// AutoCompleteSource.cs
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2006 Novell, Inc.
|
||||
//
|
||||
// Authors:
|
||||
// Jonathan Pobst (monkey@jpobst.com)
|
||||
//
|
||||
|
||||
|
||||
namespace System.Windows.Forms
|
||||
{
|
||||
public enum AutoCompleteSource
|
||||
{
|
||||
FileSystem = 1,
|
||||
HistoryList = 2,
|
||||
RecentlyUsedList = 4,
|
||||
AllUrl = 6,
|
||||
AllSystemSources = 7,
|
||||
FileSystemDirectories = 32,
|
||||
CustomSource = 64,
|
||||
None = 128,
|
||||
ListItems = 256
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
//
|
||||
// AutoCompleteStringCollection.cs
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2006 Daniel Nauck
|
||||
//
|
||||
// Author:
|
||||
// Daniel Nauck (dna(at)mono-project(dot)de)
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Reflection;
|
||||
|
||||
namespace System.Windows.Forms
|
||||
{
|
||||
public class AutoCompleteStringCollection : IList, ICollection, IEnumerable
|
||||
{
|
||||
private ArrayList list = null;
|
||||
|
||||
public AutoCompleteStringCollection ()
|
||||
{
|
||||
list = new ArrayList ();
|
||||
}
|
||||
|
||||
public event CollectionChangeEventHandler CollectionChanged;
|
||||
|
||||
protected void OnCollectionChanged (CollectionChangeEventArgs e)
|
||||
{
|
||||
if(CollectionChanged == null)
|
||||
return;
|
||||
|
||||
CollectionChanged (this, e);
|
||||
}
|
||||
|
||||
#region IEnumerable Members
|
||||
|
||||
public IEnumerator GetEnumerator ()
|
||||
{
|
||||
return list.GetEnumerator ();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ICollection Members
|
||||
|
||||
void ICollection.CopyTo (Array array, int index)
|
||||
{
|
||||
list.CopyTo (array, index);
|
||||
}
|
||||
|
||||
public void CopyTo (string[] array, int index)
|
||||
{
|
||||
list.CopyTo (array, index);
|
||||
}
|
||||
|
||||
public int Count
|
||||
{
|
||||
get { return list.Count; }
|
||||
}
|
||||
|
||||
public bool IsSynchronized
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
public object SyncRoot
|
||||
{
|
||||
get { return this; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IList Members
|
||||
|
||||
int IList.Add (object value)
|
||||
{
|
||||
return Add ((string)value);
|
||||
}
|
||||
|
||||
public int Add (string value)
|
||||
{
|
||||
int index = list.Add (value);
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Add, value));
|
||||
return index;
|
||||
}
|
||||
|
||||
public void AddRange (string[] value)
|
||||
{
|
||||
if (value == null)
|
||||
throw new ArgumentNullException ("value", "Argument cannot be null!");
|
||||
|
||||
list.AddRange (value);
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Refresh, null));
|
||||
}
|
||||
|
||||
public void Clear ()
|
||||
{
|
||||
list.Clear ();
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Refresh, null));
|
||||
}
|
||||
|
||||
bool IList.Contains (object value)
|
||||
{
|
||||
return Contains ((string)value);
|
||||
}
|
||||
|
||||
public bool Contains (string value)
|
||||
{
|
||||
return list.Contains (value);
|
||||
}
|
||||
|
||||
int IList.IndexOf (object value)
|
||||
{
|
||||
return IndexOf ((string)value);
|
||||
}
|
||||
|
||||
public int IndexOf (string value)
|
||||
{
|
||||
return list.IndexOf (value);
|
||||
}
|
||||
|
||||
void IList.Insert (int index, object value)
|
||||
{
|
||||
Insert (index, (string)value);
|
||||
}
|
||||
|
||||
public void Insert (int index, string value)
|
||||
{
|
||||
list.Insert (index, value);
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Add, value));
|
||||
}
|
||||
|
||||
bool IList.IsFixedSize
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
bool IList.IsReadOnly
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
void IList.Remove (object value)
|
||||
{
|
||||
Remove((string)value);
|
||||
}
|
||||
|
||||
public void Remove (string value)
|
||||
{
|
||||
list.Remove (value);
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Remove, value));
|
||||
}
|
||||
|
||||
public void RemoveAt (int index)
|
||||
{
|
||||
string value = this[index];
|
||||
list.RemoveAt (index);
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Remove, value));
|
||||
}
|
||||
|
||||
object IList.this[int index]
|
||||
{
|
||||
get { return this[index]; }
|
||||
set { this[index] = (string)value; }
|
||||
}
|
||||
|
||||
public string this[int index]
|
||||
{
|
||||
get { return (string)list[index]; }
|
||||
set {
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Remove, list[index]));
|
||||
list[index] = value;
|
||||
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Add, value));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
|
||||
//
|
||||
// Authors:
|
||||
// Peter Dennis Bartok (pbartok@novell.com)
|
||||
//
|
||||
//
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
public enum AutoScaleMode {
|
||||
None = 0,
|
||||
Font = 1,
|
||||
Dpi = 2,
|
||||
Inherit = 3
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user