public StringCollectionForm(CollectionEditor editor)
     : base(editor)
 {
     this.editor = (StringCollectionEditor) editor;
     this.InitializeComponent();
     this.HookEvents();
 }
            public FileDialogPlacesEditorForm(CollectionEditor editor)
                : base(editor)
            {
                InitializeComponent();

                placesBar.Renderer = new FileDialogs.PlacesBarRenderer();

                List<KeyValuePair<string, SpecialFolder>> specialFolders = new List<KeyValuePair<string, SpecialFolder>>();
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("Desktop", SpecialFolder.Desktop));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("My Computer", SpecialFolder.MyComputer));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("My Network Places", SpecialFolder.Network));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("My Documents", SpecialFolder.MyDocuments));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("My Pictures", SpecialFolder.MyPictures));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("My Music", SpecialFolder.MyMusic));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("My Video", SpecialFolder.MyVideo));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("Favorites", SpecialFolder.Favorites));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("My Recent Documents", SpecialFolder.Recent));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("Recycle Bin", SpecialFolder.RecycleBin));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("Windows", SpecialFolder.Windows));
                specialFolders.Add(new KeyValuePair<string, SpecialFolder>("System", SpecialFolder.System));

                specialFoldersComboBox.DataSource = specialFolders;
                specialFoldersComboBox.SelectedIndex = 0;

                placesListBox.DataSource = m_places;
                placesListBox.DisplayMember = "Text";
            }
            public ComponaCollectionForm(CollectionEditor e) : base(e)
            {
                Editor = e as ComponaCollectionEditor;

                if (Editor != null)
                    GUI = Editor.CreateGUI();

                GUI.Visible = true;
                GUI.Dock = DockStyle.Fill;
                Controls.Add(GUI);
                AcceptButton = GUI.btnOK;
                CancelButton = GUI.btnCancel;
                Size = new Size(630, 470);
                GUI.Editor = e as ComponaCollectionEditor;

                Type[] types = NewItemTypes;
                if (types.Length > 1)
                {
                    GUI.btnDropdown.Visible = true;
                    GUI.btnDropdown.ContextMenu = new ContextMenu();
                    for (int i = 0; (i < types.Length); i ++)
                    {
                        GUI.btnDropdown.ContextMenu.MenuItems.Add(new TypeMenuItem(types[i], btnDropDownMenuItem_Click));
                    }
                }

                GUI.btnRemove.Click += btnRemove_Click;
                GUI.btnAdd.Click += btnAdd_Click;
                GUI.btnCancel.Click += btnCancel_Click;
                GUI.btnOK.Click += btnOK_Click;
                GUI.btnUp.Click += btnUp_Click;
                GUI.btnDown.Click += btnDown_Click;
                GUI.btnDropdown.Click += btnDropDown_Click;
            }
 public TreeNodeCollectionForm(CollectionEditor editor) : base(editor)
 {
     this.editor = (TreeNodeCollectionEditor) editor;
     this.InitializeComponent();
     this.HookEvents();
     this.intialNextNode = this.NextNode;
     this.SetButtonsState();
     DesignerUtils.ApplyTreeViewThemeStyles(this.treeView1);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PolygonPointCollectionForm"/> class.
 /// </summary>
 /// <param name="editor">The <see cref="T:System.ComponentModel.Design.CollectionEditor"/> to use for editing the collection.</param>
 public PolygonPointCollectionForm(CollectionEditor editor) : base(editor)
 {
     lblInstruction = new Label();
     txtEntry = new TextBox();
     btnOk = new Button();
     btnCancel = new Button();
     Editor = (PolygonPointCollectionEditor)editor;
     InitializeComponent();
 }
 public PolygonPointCollectionForm(CollectionEditor editor)
     : base(editor)
 {
     this.uxInstruction = new Label();
     this.uxTextEntry = new TextBox();
     this.uxOK = new Button();
     this.uxCancel = new Button();
     this.Editor = (PolygonPointCollectionEditor)editor;
     this.InitializeComponent();
 }
 public IntegerCollectionForm(CollectionEditor editor) : base(editor)
 {
     this.instruction = new Label();
     this.textEntry = new TextBox();
     this.okButton = new Button();
     this.cancelButton = new Button();
     this.helpButton = new Button();
     this.editor = (IntegerCollectionEditor) editor;
     this.InitializeComponent();
 }
 public TreeNodeCollectionForm(CollectionEditor editor)
     : base(editor)
 {
     this.editor = (TreeNodeCollectionEditor) editor;
     this.InitializeComponent();
     this.HookEvents();
     this.intialNextNode = this.NextNode;
     this.SetButtonsState();
     DesignerUtils.ApplyTreeViewThemeStyles(this.treeView1);
     if (System.Windows.Forms.DpiHelper.IsScalingRequired)
     {
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.moveDownButton);
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.moveUpButton);
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.btnDelete);
     }
 }
		public CollectionForm (CollectionEditor editor)
				{
				}
			public StringCollectionEditForm (CollectionEditor editor) : base (editor)
			{
				InitializeComponent ();
			}
 public ListItem(CollectionEditor parentCollectionEditor, object value)
 {
     this.value = value;
     this.parentCollectionEditor = parentCollectionEditor;
 }
Exemple #12
0
			public CollectionForm (CollectionEditor editor)
			{
				this.editor = editor;
			}
 public DataFieldCollectionForm(IServiceProvider serviceProvider, CollectionEditor editor) : base(editor)
 {
     this.fieldLabel = new Label();
     this.fieldsList = new ListBoxWithEnter();
     this.selectedFieldsLabel = new Label();
     this.selectedFieldsList = new ListBoxWithEnter();
     this.moveLeft = new Button();
     this.moveRight = new Button();
     this.moveUp = new Button();
     this.moveDown = new Button();
     this.okButton = new Button();
     this.cancelButton = new Button();
     this.layoutPanel = new TableLayoutPanel();
     this.moveUpDownPanel = new Panel();
     this.moveLeftRightPanel = new Panel();
     this.editor = (DataFieldCollectionEditor) editor;
     this._serviceProvider = serviceProvider;
     if (!string.Equals(System.Design.SR.GetString("RTL"), "RTL_False", StringComparison.Ordinal))
     {
         this.RightToLeft = RightToLeft.Yes;
         this.RightToLeftLayout = true;
     }
     this.InitializeComponent();
     this._dataFields = this.GetControlDataFieldNames();
 }
Exemple #14
0
 public CollectionForm(CollectionEditor editor)
 {
     this.editor = editor;
 }
 internal StyleEditorForm(CollectionEditor editor, bool isRowCollection)
     : base(editor)
 {
     this.editor = (StyleCollectionEditor) editor;
     this.isRowCollection = isRowCollection;
     this.InitializeComponent();
     this.HookEvents();
     DesignerUtils.ApplyListViewThemeStyles(this.columnsAndRowsListView);
     base.ActiveControl = this.columnsAndRowsListView;
     this.tlp = base.Context.Instance as TableLayoutPanel;
     this.tlp.SuspendLayout();
     this.deleteList = new ArrayList();
     IDesignerHost service = this.tlp.Site.GetService(typeof(IDesignerHost)) as IDesignerHost;
     if (service != null)
     {
         this.tlpDesigner = service.GetDesigner(this.tlp) as TableLayoutPanelDesigner;
         this.compSvc = service.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
     }
     this.rowStyleProp = TypeDescriptor.GetProperties(this.tlp)["RowStyles"];
     this.colStyleProp = TypeDescriptor.GetProperties(this.tlp)["ColumnStyles"];
     this.tlpDesigner.SuspendEnsureAvailableStyles();
 }
 internal ToolStripItemEditorForm(CollectionEditor parent)
     : base(parent)
 {
     this.customItemIndex = -1;
     this.editor = (ToolStripCollectionEditor) parent;
     this.InitializeComponent();
     if (System.Windows.Forms.DpiHelper.IsScalingRequired)
     {
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.btnMoveUp);
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.btnMoveDown);
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.btnRemove);
     }
     base.ActiveControl = this.listBoxItems;
     this._originalText = this.Text;
     base.SetStyle(ControlStyles.ResizeRedraw, true);
 }
 public CollectionEditorCollectionForm(CollectionEditor editor)
     : base(editor)
 {
     this.editor = editor;
     this.InitializeComponent();
     if (System.Windows.Forms.DpiHelper.IsScalingRequired)
     {
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.downButton);
         System.Windows.Forms.DpiHelper.ScaleButtonImageLogicalToDevice(this.upButton);
     }
     this.Text = System.Design.SR.GetString("CollectionEditorCaption", new object[] { base.CollectionItemType.Name });
     this.HookEvents();
     System.Type[] newItemTypes = base.NewItemTypes;
     if (newItemTypes.Length > 1)
     {
         EventHandler handler = new EventHandler(this.AddDownMenu_click);
         this.addButton.ShowSplit = true;
         this.addDownMenu = new ContextMenuStrip();
         this.addButton.ContextMenuStrip = this.addDownMenu;
         for (int i = 0; i < newItemTypes.Length; i++)
         {
             this.addDownMenu.Items.Add(new TypeMenuItem(newItemTypes[i], handler));
         }
     }
     this.AdjustListBoxItemHeight();
 }
 public TreeNodeCollectionForm(CollectionEditor editor)
     : base(editor)
 {
     InitializeComponent();
 }
 internal ToolStripItemEditorForm(CollectionEditor parent) : base(parent)
 {
     this.customItemIndex = -1;
     this.editor = (ToolStripCollectionEditor) parent;
     this.InitializeComponent();
     base.ActiveControl = this.listBoxItems;
     this._originalText = this.Text;
     base.SetStyle(ControlStyles.ResizeRedraw, true);
 }
Exemple #20
0
 public ObjectContainer(object obj, CollectionEditor editor)
 {
     this.Object = obj;
     this.editor = editor;
 }
Exemple #21
0
				public ObjectContainer (object obj, CollectionEditor editor)
				{
					this.Object = obj;
					this.editor = editor;
				}
Exemple #22
0
            public ConcreteCollectionForm(CollectionEditor editor)
                : base(editor)
            {
                this.editor = editor;

                this.labelMember   = new System.Windows.Forms.Label();
                this.labelProperty = new System.Windows.Forms.Label();
                this.itemsList     = new UpdateableListbox();
                this.itemDisplay   = new System.Windows.Forms.PropertyGrid();
                this.doClose       = new System.Windows.Forms.Button();
                this.moveUp        = new System.Windows.Forms.Button();
                this.moveDown      = new System.Windows.Forms.Button();
                this.doAdd         = new System.Windows.Forms.Button();
                this.doRemove      = new System.Windows.Forms.Button();
                this.doCancel      = new System.Windows.Forms.Button();
                this.addType       = new System.Windows.Forms.ComboBox();
                this.SuspendLayout();
                //
                // labelMember
                //
                this.labelMember.Location = new System.Drawing.Point(12, 9);
                this.labelMember.Size     = new System.Drawing.Size(55, 13);
                this.labelMember.Text     = "Members:";
                //
                // labelProperty
                //
                this.labelProperty.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                                  | System.Windows.Forms.AnchorStyles.Right)));
                this.labelProperty.Location = new System.Drawing.Point(172, 9);
                this.labelProperty.Size     = new System.Drawing.Size(347, 13);
                this.labelProperty.Text     = "Properties:";
                //
                // itemsList
                //
                this.itemsList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                              | System.Windows.Forms.AnchorStyles.Left)));
                this.itemsList.HorizontalScrollbar = true;
                this.itemsList.Location            = new System.Drawing.Point(12, 25);
                this.itemsList.SelectionMode       = System.Windows.Forms.SelectionMode.MultiExtended;
                this.itemsList.Size                  = new System.Drawing.Size(120, 290);
                this.itemsList.TabIndex              = 0;
                this.itemsList.SelectedIndexChanged += new System.EventHandler(this.itemsList_SelectedIndexChanged);
                //
                // itemDisplay
                //
                this.itemDisplay.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                                | System.Windows.Forms.AnchorStyles.Right)));
                this.itemDisplay.HelpVisible           = false;
                this.itemDisplay.Location              = new System.Drawing.Point(175, 25);
                this.itemDisplay.Size                  = new System.Drawing.Size(344, 314);
                this.itemDisplay.TabIndex              = 6;
                this.itemDisplay.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.itemDisplay_PropertyValueChanged);
                //
                // doClose
                //
                this.doClose.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
                this.doClose.Location = new System.Drawing.Point(341, 345);
                this.doClose.Size     = new System.Drawing.Size(86, 26);
                this.doClose.TabIndex = 7;
                this.doClose.Text     = "OK";
                this.doClose.Click   += new System.EventHandler(this.doClose_Click);
                //
                // moveUp
                //
                this.moveUp.Location = new System.Drawing.Point(138, 25);
                this.moveUp.Size     = new System.Drawing.Size(31, 28);
                this.moveUp.TabIndex = 4;
                this.moveUp.Enabled  = false;
                this.moveUp.Text     = "Up";
                this.moveUp.Click   += new System.EventHandler(this.moveUp_Click);
                //
                // moveDown
                //
                this.moveDown.Location = new System.Drawing.Point(138, 59);
                this.moveDown.Size     = new System.Drawing.Size(31, 28);
                this.moveDown.TabIndex = 5;
                this.moveDown.Enabled  = false;
                this.moveDown.Text     = "Dn";
                this.moveDown.Click   += new System.EventHandler(this.moveDown_Click);
                //
                // doAdd
                //
                this.doAdd.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
                this.doAdd.Location = new System.Drawing.Point(12, 346);
                this.doAdd.Size     = new System.Drawing.Size(59, 25);
                this.doAdd.TabIndex = 1;
                this.doAdd.Text     = "Add";
                this.doAdd.Click   += new System.EventHandler(this.doAdd_Click);
                //
                // doRemove
                //
                this.doRemove.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
                this.doRemove.Location = new System.Drawing.Point(77, 346);
                this.doRemove.Size     = new System.Drawing.Size(55, 25);
                this.doRemove.TabIndex = 2;
                this.doRemove.Text     = "Remove";
                this.doRemove.Click   += new System.EventHandler(this.doRemove_Click);
                //
                // doCancel
                //
                this.doCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
                this.doCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
                this.doCancel.Location     = new System.Drawing.Point(433, 345);
                this.doCancel.Size         = new System.Drawing.Size(86, 26);
                this.doCancel.TabIndex     = 8;
                this.doCancel.Text         = "Cancel";
                this.doCancel.Click       += new System.EventHandler(this.doCancel_Click);
                //
                // addType
                //
                this.addType.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
                this.addType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
                this.addType.Location      = new System.Drawing.Point(12, 319);
                this.addType.Size          = new System.Drawing.Size(120, 21);
                this.addType.TabIndex      = 3;
                //
                // DesignerForm
                //
                this.AcceptButton = this.doClose;
                this.CancelButton = this.doCancel;
                this.ClientSize   = new System.Drawing.Size(531, 381);
                this.ControlBox   = false;
                this.Controls.Add(this.addType);
                this.Controls.Add(this.doCancel);
                this.Controls.Add(this.doRemove);
                this.Controls.Add(this.doAdd);
                this.Controls.Add(this.moveDown);
                this.Controls.Add(this.moveUp);
                this.Controls.Add(this.doClose);
                this.Controls.Add(this.itemDisplay);
                this.Controls.Add(this.itemsList);
                this.Controls.Add(this.labelProperty);
                this.Controls.Add(this.labelMember);
                this.HelpButton    = true;
                this.MaximizeBox   = false;
                this.MinimizeBox   = false;
                this.MinimumSize   = new System.Drawing.Size(400, 300);
                this.ShowInTaskbar = false;
                this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                this.ResumeLayout(false);

                if (editor.CollectionType.IsGenericType)
                {
                    this.Text = editor.CollectionItemType.Name + " Collection Editor";
                }
                else
                {
                    this.Text = editor.CollectionType.Name + " Collection Editor";
                }
                foreach (Type type in editor.NewItemTypes)
                {
                    addType.Items.Add(type.Name);
                }
                if (addType.Items.Count > 0)
                {
                    addType.SelectedIndex = 0;
                }
            }
Exemple #23
0
			public ConcreteCollectionForm (CollectionEditor editor)
				: base (editor)
			{
				this.editor = editor;

				this.labelMember = new System.Windows.Forms.Label ();
				this.labelProperty = new System.Windows.Forms.Label ();
				this.itemsList = new UpdateableListbox ();
				this.itemDisplay = new System.Windows.Forms.PropertyGrid ();
				this.doClose = new System.Windows.Forms.Button ();
				this.moveUp = new System.Windows.Forms.Button ();
				this.moveDown = new System.Windows.Forms.Button ();
				this.doAdd = new System.Windows.Forms.Button ();
				this.doRemove = new System.Windows.Forms.Button ();
				this.doCancel = new System.Windows.Forms.Button ();
				this.addType = new System.Windows.Forms.ComboBox ();
				this.SuspendLayout ();
				// 
				// labelMember
				// 
				this.labelMember.Location = new System.Drawing.Point (12, 9);
				this.labelMember.Size = new System.Drawing.Size (55, 13);
				this.labelMember.Text = "Members:";
				// 
				// labelProperty
				// 
				this.labelProperty.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
							| System.Windows.Forms.AnchorStyles.Right)));
				this.labelProperty.Location = new System.Drawing.Point (172, 9);
				this.labelProperty.Size = new System.Drawing.Size (347, 13);
				this.labelProperty.Text = "Properties:";
				// 
				// itemsList
				// 
				this.itemsList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
							| System.Windows.Forms.AnchorStyles.Left)));
				this.itemsList.HorizontalScrollbar = true;
				this.itemsList.Location = new System.Drawing.Point (12, 25);
				this.itemsList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
				this.itemsList.Size = new System.Drawing.Size (120, 290);
				this.itemsList.TabIndex = 0;
				this.itemsList.SelectedIndexChanged += new System.EventHandler (this.itemsList_SelectedIndexChanged);
				// 
				// itemDisplay
				// 
				this.itemDisplay.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
							| System.Windows.Forms.AnchorStyles.Left)
							| System.Windows.Forms.AnchorStyles.Right)));
				this.itemDisplay.HelpVisible = false;
				this.itemDisplay.Location = new System.Drawing.Point (175, 25);
				this.itemDisplay.Size = new System.Drawing.Size (344, 314);
				this.itemDisplay.TabIndex = 6;
				this.itemDisplay.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler (this.itemDisplay_PropertyValueChanged);
				// 
				// doClose
				// 
				this.doClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
				this.doClose.Location = new System.Drawing.Point (341, 345);
				this.doClose.Size = new System.Drawing.Size (86, 26);
				this.doClose.TabIndex = 7;
				this.doClose.Text = "OK";
				this.doClose.Click += new System.EventHandler (this.doClose_Click);
				// 
				// moveUp
				// 
				this.moveUp.Location = new System.Drawing.Point (138, 25);
				this.moveUp.Size = new System.Drawing.Size (31, 28);
				this.moveUp.TabIndex = 4;
				this.moveUp.Enabled = false;
				this.moveUp.Text = "Up";
				this.moveUp.Click += new System.EventHandler (this.moveUp_Click);
				// 
				// moveDown
				// 
				this.moveDown.Location = new System.Drawing.Point (138, 59);
				this.moveDown.Size = new System.Drawing.Size (31, 28);
				this.moveDown.TabIndex = 5;
				this.moveDown.Enabled = false;
				this.moveDown.Text = "Dn";
				this.moveDown.Click += new System.EventHandler (this.moveDown_Click);
				// 
				// doAdd
				// 
				this.doAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
				this.doAdd.Location = new System.Drawing.Point (12, 346);
				this.doAdd.Size = new System.Drawing.Size (59, 25);
				this.doAdd.TabIndex = 1;
				this.doAdd.Text = "Add";
				this.doAdd.Click += new System.EventHandler (this.doAdd_Click);
				// 
				// doRemove
				// 
				this.doRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
				this.doRemove.Location = new System.Drawing.Point (77, 346);
				this.doRemove.Size = new System.Drawing.Size (55, 25);
				this.doRemove.TabIndex = 2;
				this.doRemove.Text = "Remove";
				this.doRemove.Click += new System.EventHandler (this.doRemove_Click);
				// 
				// doCancel
				// 
				this.doCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
				this.doCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
				this.doCancel.Location = new System.Drawing.Point (433, 345);
				this.doCancel.Size = new System.Drawing.Size (86, 26);
				this.doCancel.TabIndex = 8;
				this.doCancel.Text = "Cancel";
				this.doCancel.Click += new System.EventHandler (this.doCancel_Click);
				// 
				// addType
				// 
				this.addType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
				this.addType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
				this.addType.Location = new System.Drawing.Point (12, 319);
				this.addType.Size = new System.Drawing.Size (120, 21);
				this.addType.TabIndex = 3;
				// 
				// DesignerForm
				// 
				this.AcceptButton = this.doClose;
				this.CancelButton = this.doCancel;
				this.ClientSize = new System.Drawing.Size (531, 381);
				this.ControlBox = false;
				this.Controls.Add (this.addType);
				this.Controls.Add (this.doCancel);
				this.Controls.Add (this.doRemove);
				this.Controls.Add (this.doAdd);
				this.Controls.Add (this.moveDown);
				this.Controls.Add (this.moveUp);
				this.Controls.Add (this.doClose);
				this.Controls.Add (this.itemDisplay);
				this.Controls.Add (this.itemsList);
				this.Controls.Add (this.labelProperty);
				this.Controls.Add (this.labelMember);
				this.HelpButton = true;
				this.MaximizeBox = false;
				this.MinimizeBox = false;
				this.MinimumSize = new System.Drawing.Size (400, 300);
				this.ShowInTaskbar = false;
				this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
				this.ResumeLayout (false);

				if (editor.CollectionType.IsGenericType)
					this.Text = editor.CollectionItemType.Name + " Collection Editor";
				else
					this.Text = editor.CollectionType.Name + " Collection Editor";
				foreach (Type type in editor.NewItemTypes)
					addType.Items.Add (type.Name);
				if (addType.Items.Count > 0)
					addType.SelectedIndex = 0;
			}
 /// <summary>
 ///  Initializes a new instance of the <see cref="CollectionForm"/> class.
 /// </summary>
 public CollectionForm(CollectionEditor editor)
 {
     _editor = editor.OrThrowIfNull();
 }
Exemple #25
0
 public CollectionForm(CollectionEditor editor)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessorsCollectionEditorForm"/> class.
 /// </summary>
 /// <param name="available">The available.</param>
 /// <param name="selected">The selected.</param>
 public ProcessorsCollectionEditorForm(CollectionEditor editor)
     : base(editor) {
     InitializeComponent();
 }
Exemple #27
0
 public CollectionForm(CollectionEditor editor)
 {
     throw null;
 }