示例#1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     ButtonsPN   = new System.Windows.Forms.Panel();
     CancelBTN   = new System.Windows.Forms.Button();
     OkBTN       = new System.Windows.Forms.Button();
     ValueCTRL   = new ValueCtrl();
     MainPN      = new System.Windows.Forms.Panel();
     ArrayLV     = new System.Windows.Forms.ListView();
     IndexCH     = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     ValueCH     = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     PopupMenu   = new System.Windows.Forms.ContextMenuStrip();
     ViewMI      = new System.Windows.Forms.ToolStripMenuItem();
     Separator01 = new System.Windows.Forms.ToolStripMenuItem();
     InsertMI    = new System.Windows.Forms.ToolStripMenuItem();
     DeleteMI    = new System.Windows.Forms.ToolStripMenuItem();
     ButtonsPN.SuspendLayout();
     MainPN.SuspendLayout();
     SuspendLayout();
     //
     // ButtonsPN
     //
     ButtonsPN.Controls.Add(CancelBTN);
     ButtonsPN.Controls.Add(OkBTN);
     ButtonsPN.Dock     = System.Windows.Forms.DockStyle.Bottom;
     ButtonsPN.Location = new System.Drawing.Point(0, 146);
     ButtonsPN.Name     = "ButtonsPN";
     ButtonsPN.Size     = new System.Drawing.Size(296, 36);
     ButtonsPN.TabIndex = 0;
     //
     // CancelBTN
     //
     CancelBTN.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     CancelBTN.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     CancelBTN.Location     = new System.Drawing.Point(216, 8);
     CancelBTN.Name         = "CancelBTN";
     CancelBTN.Size         = new System.Drawing.Size(75, 23);
     CancelBTN.TabIndex     = 0;
     CancelBTN.Text         = "Cancel";
     CancelBTN.Click       += new System.EventHandler(CancelBTN_Click);
     //
     // OkBTN
     //
     OkBTN.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     OkBTN.Location = new System.Drawing.Point(135, 6);
     OkBTN.Name     = "OkBTN";
     OkBTN.Size     = new System.Drawing.Size(75, 23);
     OkBTN.TabIndex = 1;
     OkBTN.Text     = "OK";
     OkBTN.Click   += new System.EventHandler(OkBTN_Click);
     //
     // ValueCTRL
     //
     ValueCTRL.Dock     = System.Windows.Forms.DockStyle.Top;
     ValueCTRL.ItemID   = null;
     ValueCTRL.Location = new System.Drawing.Point(0, 0);
     ValueCTRL.Name     = "ValueCTRL";
     ValueCTRL.Padding  = new System.Windows.Forms.Padding(4, 4, 4, 0);
     ValueCTRL.Size     = new System.Drawing.Size(296, 28);
     ValueCTRL.TabIndex = 1;
     ValueCTRL.Value    = null;
     //
     // MainPN
     //
     MainPN.Controls.Add(ArrayLV);
     MainPN.Dock     = System.Windows.Forms.DockStyle.Fill;
     MainPN.Location = new System.Drawing.Point(0, 28);
     MainPN.Name     = "MainPN";
     MainPN.Padding  = new System.Windows.Forms.Padding(4, 4, 4, 0);
     MainPN.Size     = new System.Drawing.Size(296, 118);
     MainPN.TabIndex = 2;
     //
     // ArrayLV
     //
     ArrayLV.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         IndexCH,
         ValueCH
     });
     ArrayLV.ContextMenuStrip = PopupMenu;
     ArrayLV.Dock             = System.Windows.Forms.DockStyle.Fill;
     ArrayLV.FullRowSelect    = true;
     ArrayLV.GridLines        = true;
     ArrayLV.Location         = new System.Drawing.Point(4, 4);
     ArrayLV.Name             = "ArrayLV";
     ArrayLV.Size             = new System.Drawing.Size(288, 114);
     ArrayLV.TabIndex         = 0;
     ArrayLV.UseCompatibleStateImageBehavior = false;
     ArrayLV.View = System.Windows.Forms.View.Details;
     ArrayLV.SelectedIndexChanged += new System.EventHandler(ArrayLV_SelectedIndexChanged);
     ArrayLV.DoubleClick          += new System.EventHandler(ViewMI_Click);
     ArrayLV.MouseDown            += new System.Windows.Forms.MouseEventHandler(ArrayLV_MouseDown);
     //
     // IndexCH
     //
     IndexCH.Text  = "Index";
     IndexCH.Width = 38;
     //
     // ValueCH
     //
     ValueCH.Text  = "Value";
     ValueCH.Width = 246;
     //
     // PopupMenu
     //
     PopupMenu.Items.AddRange(new System.Windows.Forms.ToolStripMenuItem[] {
         ViewMI,
         Separator01,
         InsertMI,
         DeleteMI
     });
     //
     // ViewMI
     //
     ViewMI.ImageIndex = 0;
     ViewMI.Text       = "&View...";
     ViewMI.Click     += new System.EventHandler(ViewMI_Click);
     //
     // Separator01
     //
     Separator01.ImageIndex = 1;
     Separator01.Text       = "-";
     //
     // InsertMI
     //
     InsertMI.ImageIndex = 2;
     InsertMI.Text       = "&Insert";
     InsertMI.Click     += new System.EventHandler(InsertMI_Click);
     //
     // DeleteMI
     //
     DeleteMI.ImageIndex = 3;
     DeleteMI.Text       = "&Delete";
     DeleteMI.Click     += new System.EventHandler(DeleteMI_Click);
     //
     // EditArrayDlg
     //
     AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     ClientSize        = new System.Drawing.Size(296, 182);
     Controls.Add(MainPN);
     Controls.Add(ValueCTRL);
     Controls.Add(ButtonsPN);
     Name          = "EditArrayDlg";
     StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     Text          = "Edit Array";
     ButtonsPN.ResumeLayout(false);
     MainPN.ResumeLayout(false);
     ResumeLayout(false);
 }
示例#2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     buttonsPn_       = new System.Windows.Forms.Panel();
     cancelBtn_       = new System.Windows.Forms.Button();
     okBtn_           = new System.Windows.Forms.Button();
     mainPn_          = new System.Windows.Forms.Panel();
     descriptionLb_   = new System.Windows.Forms.Label();
     nameLb_          = new System.Windows.Forms.Label();
     attributeCb_     = new System.Windows.Forms.ComboBox();
     topPn_           = new System.Windows.Forms.Panel();
     operatorCtrl_    = new SampleClients.Common.EnumCtrl();
     filterValueCtrl_ = new SampleClients.Common.ValueCtrl();
     operatorLb_      = new System.Windows.Forms.Label();
     filterValueLb_   = new System.Windows.Forms.Label();
     buttonsPn_.SuspendLayout();
     mainPn_.SuspendLayout();
     topPn_.SuspendLayout();
     SuspendLayout();
     //
     // ButtonsPN
     //
     buttonsPn_.Controls.Add(cancelBtn_);
     buttonsPn_.Controls.Add(okBtn_);
     buttonsPn_.Dock     = System.Windows.Forms.DockStyle.Bottom;
     buttonsPn_.Location = new System.Drawing.Point(0, 138);
     buttonsPn_.Name     = "buttonsPn_";
     buttonsPn_.Size     = new System.Drawing.Size(304, 36);
     buttonsPn_.TabIndex = 1;
     //
     // CancelBTN
     //
     cancelBtn_.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     cancelBtn_.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     cancelBtn_.Location     = new System.Drawing.Point(224, 8);
     cancelBtn_.Name         = "cancelBtn_";
     cancelBtn_.TabIndex     = 0;
     cancelBtn_.Text         = "Cancel";
     //
     // OkBTN
     //
     okBtn_.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     okBtn_.DialogResult = System.Windows.Forms.DialogResult.OK;
     okBtn_.Location     = new System.Drawing.Point(4, 8);
     okBtn_.Name         = "okBtn_";
     okBtn_.TabIndex     = 1;
     okBtn_.Text         = "OK";
     //
     // MainPN
     //
     mainPn_.Controls.Add(descriptionLb_);
     mainPn_.Dock              = System.Windows.Forms.DockStyle.Fill;
     mainPn_.DockPadding.Left  = 4;
     mainPn_.DockPadding.Right = 4;
     mainPn_.DockPadding.Top   = 4;
     mainPn_.Location          = new System.Drawing.Point(0, 76);
     mainPn_.Name              = "mainPn_";
     mainPn_.Size              = new System.Drawing.Size(304, 62);
     mainPn_.TabIndex          = 5;
     //
     // DescriptionLB
     //
     descriptionLb_.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     descriptionLb_.Dock        = System.Windows.Forms.DockStyle.Fill;
     descriptionLb_.Location    = new System.Drawing.Point(4, 4);
     descriptionLb_.Name        = "descriptionLb_";
     descriptionLb_.Size        = new System.Drawing.Size(296, 58);
     descriptionLb_.TabIndex    = 2;
     descriptionLb_.Text        = "Description";
     //
     // NameLB
     //
     nameLb_.Location  = new System.Drawing.Point(4, 4);
     nameLb_.Name      = "nameLb_";
     nameLb_.Size      = new System.Drawing.Size(68, 23);
     nameLb_.TabIndex  = 0;
     nameLb_.Text      = "Attribute";
     nameLb_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // AttributeCB
     //
     attributeCb_.Location              = new System.Drawing.Point(72, 4);
     attributeCb_.Name                  = "attributeCb_";
     attributeCb_.Size                  = new System.Drawing.Size(228, 21);
     attributeCb_.TabIndex              = 3;
     attributeCb_.SelectedIndexChanged += new System.EventHandler(AttributeCB_SelectedIndexChanged);
     //
     // TopPN
     //
     topPn_.Controls.Add(operatorCtrl_);
     topPn_.Controls.Add(filterValueCtrl_);
     topPn_.Controls.Add(operatorLb_);
     topPn_.Controls.Add(filterValueLb_);
     topPn_.Controls.Add(attributeCb_);
     topPn_.Controls.Add(nameLb_);
     topPn_.Dock     = System.Windows.Forms.DockStyle.Top;
     topPn_.Location = new System.Drawing.Point(0, 0);
     topPn_.Name     = "topPn_";
     topPn_.Size     = new System.Drawing.Size(304, 76);
     topPn_.TabIndex = 6;
     //
     // OperatorCTRL
     //
     operatorCtrl_.Location = new System.Drawing.Point(72, 28);
     operatorCtrl_.Name     = "operatorCtrl_";
     operatorCtrl_.Size     = new System.Drawing.Size(144, 24);
     operatorCtrl_.TabIndex = 13;
     //
     // FilterValueCTRL
     //
     filterValueCtrl_.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     filterValueCtrl_.ItemID   = null;
     filterValueCtrl_.Location = new System.Drawing.Point(72, 52);
     filterValueCtrl_.Name     = "filterValueCtrl_";
     filterValueCtrl_.Size     = new System.Drawing.Size(228, 20);
     filterValueCtrl_.TabIndex = 12;
     //
     // OperatorLB
     //
     operatorLb_.Location  = new System.Drawing.Point(4, 28);
     operatorLb_.Name      = "operatorLb_";
     operatorLb_.Size      = new System.Drawing.Size(68, 23);
     operatorLb_.TabIndex  = 10;
     operatorLb_.Text      = "Operator";
     operatorLb_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // FilterValueLB
     //
     filterValueLb_.Location  = new System.Drawing.Point(4, 52);
     filterValueLb_.Name      = "filterValueLb_";
     filterValueLb_.Size      = new System.Drawing.Size(68, 23);
     filterValueLb_.TabIndex  = 11;
     filterValueLb_.Text      = "Filter Value";
     filterValueLb_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // AttributeFilterEditDlg
     //
     AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     CancelButton      = cancelBtn_;
     ClientSize        = new System.Drawing.Size(304, 174);
     Controls.Add(mainPn_);
     Controls.Add(topPn_);
     Controls.Add(buttonsPn_);
     Name          = "AttributeFilterEditDlg";
     StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     Text          = "Set Attribute Filter";
     buttonsPn_.ResumeLayout(false);
     mainPn_.ResumeLayout(false);
     topPn_.ResumeLayout(false);
     ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     ButtonsPN = new System.Windows.Forms.Panel();
     CancelBTN = new System.Windows.Forms.Button();
     OkBTN     = new System.Windows.Forms.Button();
     ValueCTRL = new ValueCtrl();
     ButtonsPN.SuspendLayout();
     SuspendLayout();
     //
     // ButtonsPN
     //
     ButtonsPN.Controls.Add(CancelBTN);
     ButtonsPN.Controls.Add(OkBTN);
     ButtonsPN.Dock     = System.Windows.Forms.DockStyle.Bottom;
     ButtonsPN.Location = new System.Drawing.Point(0, 26);
     ButtonsPN.Name     = "ButtonsPN";
     ButtonsPN.Size     = new System.Drawing.Size(296, 36);
     ButtonsPN.TabIndex = 0;
     //
     // CancelBTN
     //
     CancelBTN.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     CancelBTN.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     CancelBTN.Location     = new System.Drawing.Point(216, 8);
     CancelBTN.Name         = "CancelBTN";
     CancelBTN.Size         = new System.Drawing.Size(75, 23);
     CancelBTN.TabIndex     = 0;
     CancelBTN.Text         = "Cancel";
     //
     // OkBTN
     //
     OkBTN.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     OkBTN.DialogResult = System.Windows.Forms.DialogResult.OK;
     OkBTN.Location     = new System.Drawing.Point(135, 8);
     OkBTN.Name         = "OkBTN";
     OkBTN.Size         = new System.Drawing.Size(75, 23);
     OkBTN.TabIndex     = 1;
     OkBTN.Text         = "OK";
     //
     // ValueCTRL
     //
     ValueCTRL.Dock     = System.Windows.Forms.DockStyle.Fill;
     ValueCTRL.ItemID   = null;
     ValueCTRL.Location = new System.Drawing.Point(0, 0);
     ValueCTRL.Name     = "ValueCTRL";
     ValueCTRL.Padding  = new System.Windows.Forms.Padding(4, 4, 4, 0);
     ValueCTRL.Size     = new System.Drawing.Size(296, 26);
     ValueCTRL.TabIndex = 1;
     ValueCTRL.Value    = null;
     //
     // EditValueDlg
     //
     AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     ClientSize        = new System.Drawing.Size(296, 62);
     Controls.Add(ValueCTRL);
     Controls.Add(ButtonsPN);
     Name          = "EditValueDlg";
     StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     Text          = "Edit Value";
     ButtonsPN.ResumeLayout(false);
     ResumeLayout(false);
 }