/// <summary> /// Constructor. /// </summary> /// <param name="entityListView"></param> /// <param name="entity"></param> public EntityListViewItem(EntityListView entityListView, object entity) { if (entityListView == null) { throw new ArgumentNullException("entityListView"); } if (entity == null) { throw new ArgumentNullException("entity"); } // set... _entityListView = entityListView; _entity = entity; // refresh... RefreshView(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.buttonOk = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.listConnections = new BootFX.Common.UI.Desktop.EntityListView(); this.buttonAdd = new System.Windows.Forms.Button(); this.buttonDelete = new System.Windows.Forms.Button(); this.buttonEdit = new System.Windows.Forms.Button(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // buttonOk // this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOk.Location = new System.Drawing.Point(204, 340); this.buttonOk.Name = "buttonOk"; this.buttonOk.TabIndex = 4; this.buttonOk.Text = "OK"; this.buttonOk.Click += new System.EventHandler(this.buttonOk_Click); // // buttonCancel // this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Location = new System.Drawing.Point(288, 340); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.TabIndex = 3; this.buttonCancel.Text = "Cancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // groupBox1 // this.groupBox1.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.groupBox1.Controls.Add(this.buttonEdit); this.groupBox1.Controls.Add(this.buttonDelete); this.groupBox1.Controls.Add(this.buttonAdd); this.groupBox1.Controls.Add(this.listConnections); this.groupBox1.Location = new System.Drawing.Point(8, 8); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(352, 324); this.groupBox1.TabIndex = 5; this.groupBox1.TabStop = false; this.groupBox1.Text = "&Connections:"; // // listConnections // this.listConnections.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.listConnections.DataSource = null; this.listConnections.Filter = null; this.listConnections.HideSelection = false; this.listConnections.Location = new System.Drawing.Point(12, 20); this.listConnections.Name = "listConnections"; this.listConnections.Size = new System.Drawing.Size(248, 292); this.listConnections.TabIndex = 0; this.listConnections.View = System.Windows.Forms.View.Details; this.listConnections.DoubleClick += new System.EventHandler(this.listConnections_DoubleClick); // // buttonAdd // this.buttonAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonAdd.Location = new System.Drawing.Point(268, 20); this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.TabIndex = 1; this.buttonAdd.Text = "&Add"; this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click); // // buttonDelete // this.buttonDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonDelete.Location = new System.Drawing.Point(268, 76); this.buttonDelete.Name = "buttonDelete"; this.buttonDelete.TabIndex = 2; this.buttonDelete.Text = "&Delete"; this.buttonDelete.Click += new System.EventHandler(this.buttonDelete_Click); // // buttonEdit // this.buttonEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonEdit.Location = new System.Drawing.Point(268, 48); this.buttonEdit.Name = "buttonEdit"; this.buttonEdit.TabIndex = 3; this.buttonEdit.Text = "&Edit"; this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click); // // EditConnectionsDialog // this.AcceptButton = this.buttonOk; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.buttonCancel; this.ClientSize = new System.Drawing.Size(368, 370); this.Controls.Add(this.groupBox1); this.Controls.Add(this.buttonOk); this.Controls.Add(this.buttonCancel); this.Name = "EditConnectionsDialog"; this.Text = "Edit Connections"; this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }