/// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.label1   = new System.Windows.Forms.Label();
            this.lblTable = new System.Windows.Forms.Label();
            this.label2   = new System.Windows.Forms.Label();
            this.txtName  = new System.Windows.Forms.TextBox();
            this.txtSize  = new System.Windows.Forms.TextBox();
            this.label3   = new System.Windows.Forms.Label();
            this.cbxType  = new DbTypeComboBox();
            this.label4   = new System.Windows.Forms.Label();
            this.btCancel = new System.Windows.Forms.Button();
            this.btOK     = new System.Windows.Forms.Button();
            this.SuspendLayout();
            //
            // label1
            //
            this.label1.Location  = new System.Drawing.Point(24, 24);
            this.label1.Name      = "label1";
            this.label1.TabIndex  = 0;
            this.label1.Tag       = "1";
            this.label1.Text      = "Table name:";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // lblTable
            //
            this.lblTable.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.lblTable.Location    = new System.Drawing.Point(136, 24);
            this.lblTable.Name        = "lblTable";
            this.lblTable.Size        = new System.Drawing.Size(128, 24);
            this.lblTable.TabIndex    = 1;
            this.lblTable.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // label2
            //
            this.label2.Location  = new System.Drawing.Point(24, 72);
            this.label2.Name      = "label2";
            this.label2.TabIndex  = 2;
            this.label2.Tag       = "2";
            this.label2.Text      = "Field name:";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // txtName
            //
            this.txtName.Location = new System.Drawing.Point(136, 72);
            this.txtName.Name     = "txtName";
            this.txtName.Size     = new System.Drawing.Size(128, 20);
            this.txtName.TabIndex = 0;
            this.txtName.Text     = "";
            //
            // txtSize
            //
            this.txtSize.Location = new System.Drawing.Point(136, 136);
            this.txtSize.Name     = "txtSize";
            this.txtSize.Size     = new System.Drawing.Size(128, 20);
            this.txtSize.TabIndex = 2;
            this.txtSize.Text     = "";
            //
            // label3
            //
            this.label3.Location  = new System.Drawing.Point(24, 104);
            this.label3.Name      = "label3";
            this.label3.TabIndex  = 4;
            this.label3.Tag       = "3";
            this.label3.Text      = "Field type:";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // cbxType
            //
            //this.cbxType.Items.AddRange(new object[] {
            //                                             "String", //FLD_String
            //                                             "Integer", //FLD_Integer
            //                                             "Long integer", //FLD_Long_integer
            //                                             "Decimal", //FLD_Decimal
            //                                             "Currency", //FLD_Currency
            //                                             "Date", //FLD_Date
            //                                             "Date and time", //FLD_Date_time
            //                                             "Yes/No", //FLD_Bool
            //                                             "Large text", //FLD_Text
            //                                             "Large binary" //FLD_Binary

            //});
            this.cbxType.Location              = new System.Drawing.Point(136, 104);
            this.cbxType.Name                  = "cbxType";
            this.cbxType.Size                  = new System.Drawing.Size(128, 21);
            this.cbxType.TabIndex              = 1;
            this.cbxType.SelectedIndexChanged += new System.EventHandler(this.cbxType_SelectedIndexChanged);
            //
            // label4
            //
            this.label4.Location  = new System.Drawing.Point(24, 136);
            this.label4.Name      = "label4";
            this.label4.TabIndex  = 7;
            this.label4.Tag       = "4";
            this.label4.Text      = "Field size:";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // btCancel
            //
            this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btCancel.Location     = new System.Drawing.Point(192, 176);
            this.btCancel.Name         = "btCancel";
            this.btCancel.TabIndex     = 4;
            this.btCancel.Text         = "Cancel";
            //
            // btOK
            //
            this.btOK.Location = new System.Drawing.Point(104, 176);
            this.btOK.Name     = "btOK";
            this.btOK.TabIndex = 3;
            this.btOK.Text     = "OK";
            this.btOK.Click   += new System.EventHandler(this.btOK_Click);
            //
            // dlgEditField
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(292, 224);
            this.Controls.Add(this.btCancel);
            this.Controls.Add(this.btOK);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.cbxType);
            this.Controls.Add(this.txtSize);
            this.Controls.Add(this.txtName);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.lblTable);
            this.Controls.Add(this.label1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = "dlgEditField";
            this.ShowInTaskbar   = false;
            this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text            = "Edit Field";
            this.ResumeLayout(false);
        }
Exemple #2
0
 public void SetSelectionByOleDbType(OleDbType type)
 {
     _selectedIndex = DbTypeComboBox.GetOleDbTypeIndex(type);
 }
Exemple #3
0
 public int CurrentSelectDataSize()
 {
     return(DbTypeComboBox.GetSelectedDataSize(_selectedIndex));
 }
Exemple #4
0
 public OleDbType CurrentSelectOleDbType()
 {
     return(DbTypeComboBox.GetSelectedType(_selectedIndex));
 }
Exemple #5
0
 private void init()
 {
     Items.AddRange(DbTypeComboBox.GetFieldNames());
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.btCancel      = new System.Windows.Forms.Button();
            this.btOK          = new System.Windows.Forms.Button();
            this.label4        = new System.Windows.Forms.Label();
            this.label3        = new System.Windows.Forms.Label();
            this.cbType        = new DbTypeComboBox();
            this.label1        = new System.Windows.Forms.Label();
            this.listView1     = new System.Windows.Forms.ListView();
            this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
            this.txtSize       = new System.Windows.Forms.TextBox();
            this.txtDef        = new System.Windows.Forms.TextBox();
            this.label2        = new System.Windows.Forms.Label();
            this.SuspendLayout();
            //
            // btCancel
            //
            this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btCancel.Location     = new System.Drawing.Point(215, 254);
            this.btCancel.Name         = "btCancel";
            this.btCancel.TabIndex     = 21;
            this.btCancel.Text         = "Cancel";
            //
            // btOK
            //
            this.btOK.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.btOK.Location     = new System.Drawing.Point(119, 254);
            this.btOK.Name         = "btOK";
            this.btOK.TabIndex     = 20;
            this.btOK.Text         = "OK";
            //
            // label4
            //
            this.label4.Location = new System.Drawing.Point(368, 96);
            this.label4.Name     = "label4";
            this.label4.Size     = new System.Drawing.Size(100, 16);
            this.label4.TabIndex = 19;
            this.label4.Tag      = "3";
            this.label4.Text     = "Data size:";
            //
            // label3
            //
            this.label3.Location = new System.Drawing.Point(368, 48);
            this.label3.Name     = "label3";
            this.label3.Size     = new System.Drawing.Size(100, 16);
            this.label3.TabIndex = 17;
            this.label3.Tag      = "2";
            this.label3.Text     = "Data type";
            //
            // cbType
            //
            //this.cbType.Items.AddRange(new object[] {
            //                                            "Integer",
            //                                            "Decimal",
            //                                            "String",
            //                                            "DateTime",
            //                                            "Yes/No",
            //                                            "Large memory",
            //                                            "Binary"});

            /*
             * String
             * Integer
             * Long integer
             * Decimal
             * Currency
             * Date
             * Time
             * Date and time
             * Yes/No
             * Large text
             * Large binary
             */
            this.cbType.Location              = new System.Drawing.Point(368, 64);
            this.cbType.Name                  = "cbType";
            this.cbType.Size                  = new System.Drawing.Size(96, 21);
            this.cbType.TabIndex              = 16;
            this.cbType.SelectedIndexChanged += new System.EventHandler(this.cbType_SelectedIndexChanged);
            //
            // label1
            //
            this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.label1.ForeColor = System.Drawing.SystemColors.ActiveCaption;
            this.label1.Location  = new System.Drawing.Point(24, 8);
            this.label1.Name      = "label1";
            this.label1.Size      = new System.Drawing.Size(360, 23);
            this.label1.TabIndex  = 15;
            this.label1.Tag       = "1";
            this.label1.Text      = "Set parameter attributes";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // listView1
            //
            this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                this.columnHeader1,
                this.columnHeader2,
                this.columnHeader3,
                this.columnHeader4
            });
            this.listView1.FullRowSelect         = true;
            this.listView1.GridLines             = true;
            this.listView1.HeaderStyle           = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.listView1.HideSelection         = false;
            this.listView1.Location              = new System.Drawing.Point(24, 40);
            this.listView1.MultiSelect           = false;
            this.listView1.Name                  = "listView1";
            this.listView1.Size                  = new System.Drawing.Size(312, 192);
            this.listView1.TabIndex              = 14;
            this.listView1.View                  = System.Windows.Forms.View.Details;
            this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
            //
            // columnHeader1
            //
            this.columnHeader1.Text  = "FieldName";
            this.columnHeader1.Width = 80;
            //
            // columnHeader2
            //
            this.columnHeader2.Text  = "DataType";
            this.columnHeader2.Width = 71;
            //
            // columnHeader3
            //
            this.columnHeader3.Text  = "DataSize";
            this.columnHeader3.Width = 69;
            //
            // columnHeader4
            //
            this.columnHeader4.Text  = "Default value";
            this.columnHeader4.Width = 86;
            //
            // txtSize
            //
            this.txtSize.Location     = new System.Drawing.Point(368, 112);
            this.txtSize.Name         = "txtSize";
            this.txtSize.Size         = new System.Drawing.Size(88, 20);
            this.txtSize.TabIndex     = 22;
            this.txtSize.Text         = "8";
            this.txtSize.TextChanged += new System.EventHandler(this.txtSize_TextChanged);
            //
            // txtDef
            //
            this.txtDef.Location     = new System.Drawing.Point(368, 160);
            this.txtDef.Name         = "txtDef";
            this.txtDef.Size         = new System.Drawing.Size(88, 20);
            this.txtDef.TabIndex     = 24;
            this.txtDef.Text         = "";
            this.txtDef.TextChanged += new System.EventHandler(this.txtDef_TextChanged);
            //
            // label2
            //
            this.label2.Location = new System.Drawing.Point(368, 144);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(100, 16);
            this.label2.TabIndex = 23;
            this.label2.Tag      = "4";
            this.label2.Text     = "Default value:";
            //
            // dlgPropParams
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(498, 288);
            this.Controls.Add(this.txtDef);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.txtSize);
            this.Controls.Add(this.btCancel);
            this.Controls.Add(this.btOK);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.cbType);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.listView1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = "dlgPropParams";
            this.ShowInTaskbar   = false;
            this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text            = "Parameters Attributes";
            this.ResumeLayout(false);
        }