コード例 #1
0
 public CustomDoubleTroubleTwo(OrderComponent oc, CustomCombo cc)
 {
     InitializeComponent();
     o           = oc;
     dd          = new DoubleDraugr();
     aaj         = new AretinoAppleJuice();
     dwf         = new DragonbornWaffleFries();
     combo       = new Combo(dd, dwf, aaj);
     cust        = cc;
     DataContext = combo;
 }
コード例 #2
0
 public CustomMadPhillyGrits(OrderComponent oc, CustomCombo cc)
 {
     InitializeComponent();
     o           = oc;
     mad         = new MadOtarGrits();
     can         = new CandlehearthCoffee();
     phil        = new PhillyPoacher();
     combo       = new Combo(phil, mad, can);
     cust        = cc;
     DataContext = combo;
 }
コード例 #3
0
 public CustomOmeletteCombo(OrderComponent oc, CustomCombo cc)
 {
     InitializeComponent();
     o           = oc;
     mm          = new MarkarthMilk();
     orc         = new GardenOrcOmelette();
     sal         = new VokunSalad();
     combo       = new Combo(orc, sal, mm);
     cust        = cc;
     DataContext = combo;
 }
コード例 #4
0
 public SailorSpecial(OrderComponent oc, CustomCombo cc)
 {
     InitializeComponent();
     o           = oc;
     ss          = new SailorSoda();
     bb          = new BriarheartBurger();
     dwf         = new DragonbornWaffleFries();
     combo       = new Combo(bb, dwf, ss);
     cust        = cc;
     DataContext = combo;
 }
コード例 #5
0
        private void method_2(CustomCombo class4_0)
        {
            int num = 0;

            class4_0.method_0();
            for (num = 0; num <= 250; num++)
            {
                if (ZoneForm.data.ZoneChIsValid(num))
                {
                    class4_0.method_1(ZoneForm.data.GetName(num), num);
                }
            }
        }
コード例 #6
0
        private void method_5(int int_0, CustomCombo class4_0)
        {
            int num  = 0;
            int num2 = 0;

            class4_0.method_0();
            for (num = 0; num < NUM_CHANNELS_PER_ZONE; num++)
            {
                num2 = ZoneForm.data[int_0].ChList[num] - 1;
                if (num2 >= 0 && num2 < ChannelForm.CurCntCh && ChannelForm.data.DataIsValid(num2))
                {
                    class4_0.method_1(ChannelForm.data.GetName(num2), num);
                }
            }
        }
コード例 #7
0
        private void method_4(int int_0, CustomCombo class4_0)
        {
            int num  = 0;
            int num2 = 0;

            class4_0.method_0();
            if (int_0 == 255)
            {
                class4_0.method_1(Settings.SZ_NONE, 255);
            }
            else
            {
                for (num = 0; num < 16; num++)
                {
                    num2 = ZoneForm.data[int_0].ChList[num] - 1;
                    if (num2 >= 0 && num2 < ChannelForm.CurCntCh && ChannelForm.data.DataIsValid(num2))
                    {
                        class4_0.method_1(ChannelForm.data.GetName(num2), num);
                    }
                }
            }
        }
コード例 #8
0
        private void InitializeComponent()
        {
            this.pnlContact       = new CustomPanel();
            this.openGD77groupbox = new System.Windows.Forms.GroupBox();
            this.cmbRepeaterSlot  = new CustomCombo();
            this.lblRepeaterSlot  = new System.Windows.Forms.Label();
            this.txtCallId        = new DMR.SGTextBox();
            this.chkCallRxTone    = new System.Windows.Forms.CheckBox();
            this.cmbRingStyle     = new CustomCombo();
            this.cmbCallType      = new CustomCombo();
            this.lblRingStyle     = new System.Windows.Forms.Label();
            this.txtName          = new DMR.SGTextBox();
            this.lblCallType      = new System.Windows.Forms.Label();
            this.lblName          = new System.Windows.Forms.Label();
            this.lblCallId        = new System.Windows.Forms.Label();
            this.pnlContact.SuspendLayout();
            this.openGD77groupbox.SuspendLayout();
            this.SuspendLayout();
            //
            // pnlContact
            //
            this.pnlContact.AutoScroll = true;
            this.pnlContact.AutoSize   = true;
            this.pnlContact.Controls.Add(this.openGD77groupbox);
            this.pnlContact.Controls.Add(this.txtCallId);
            this.pnlContact.Controls.Add(this.chkCallRxTone);
            this.pnlContact.Controls.Add(this.cmbRingStyle);
            this.pnlContact.Controls.Add(this.cmbCallType);
            this.pnlContact.Controls.Add(this.lblRingStyle);
            this.pnlContact.Controls.Add(this.txtName);
            this.pnlContact.Controls.Add(this.lblCallType);
            this.pnlContact.Controls.Add(this.lblName);
            this.pnlContact.Controls.Add(this.lblCallId);
            this.pnlContact.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.pnlContact.Location = new System.Drawing.Point(0, 0);
            this.pnlContact.Name     = "pnlContact";
            this.pnlContact.Size     = new System.Drawing.Size(314, 267);
            this.pnlContact.TabIndex = 7;
            //
            // openGD77groupbox
            //
            this.openGD77groupbox.Controls.Add(this.cmbRepeaterSlot);
            this.openGD77groupbox.Controls.Add(this.lblRepeaterSlot);
            this.openGD77groupbox.Location = new System.Drawing.Point(7, 173);
            this.openGD77groupbox.Name     = "openGD77groupbox";
            this.openGD77groupbox.Size     = new System.Drawing.Size(283, 62);
            this.openGD77groupbox.TabIndex = 7;
            this.openGD77groupbox.TabStop  = false;
            this.openGD77groupbox.Text     = "OpenGD77 - Channel TS override";
            //
            // cmbRepeaterSlot
            //
            this.cmbRepeaterSlot.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbRepeaterSlot.FormattingEnabled = true;
            this.cmbRepeaterSlot.Items.AddRange(new object[] {
                "Disabled",
                "TS 1",
                "TS 2"
            });
            this.cmbRepeaterSlot.Location              = new System.Drawing.Point(129, 32);
            this.cmbRepeaterSlot.Name                  = "cmbRepeaterSlot";
            this.cmbRepeaterSlot.Size                  = new System.Drawing.Size(120, 24);
            this.cmbRepeaterSlot.TabIndex              = 5;
            this.cmbRepeaterSlot.SelectedIndexChanged += new System.EventHandler(this.cmbRepeaterSlot_SelectedIndexChanged);
            //
            // lblRepeaterSlot
            //
            this.lblRepeaterSlot.Location  = new System.Drawing.Point(12, 32);
            this.lblRepeaterSlot.Name      = "lblRepeaterSlot";
            this.lblRepeaterSlot.Size      = new System.Drawing.Size(111, 24);
            this.lblRepeaterSlot.TabIndex  = 4;
            this.lblRepeaterSlot.Text      = "Repeater Slot";
            this.lblRepeaterSlot.TextAlign = System.Drawing.ContentAlignment.MiddleRight;

            //
            // txtCallId
            //
            this.txtCallId.InputString   = null;
            this.txtCallId.Location      = new System.Drawing.Point(137, 44);
            this.txtCallId.MaxByteLength = 0;
            this.txtCallId.Name          = "txtCallId";
            this.txtCallId.Size          = new System.Drawing.Size(120, 23);
            this.txtCallId.TabIndex      = 3;
            this.txtCallId.Enter        += new System.EventHandler(this.txtCallId_Enter);
            this.txtCallId.Leave        += new System.EventHandler(this.txtCallId_Leave);
            this.txtCallId.Validating   += new System.ComponentModel.CancelEventHandler(this.txtCallId_Validating);
            //
            // chkCallRxTone
            //
            this.chkCallRxTone.AutoSize = true;
            this.chkCallRxTone.Location = new System.Drawing.Point(137, 137);
            this.chkCallRxTone.Name     = "chkCallRxTone";
            this.chkCallRxTone.Size     = new System.Drawing.Size(141, 20);
            this.chkCallRxTone.TabIndex = 6;
            this.chkCallRxTone.Text     = "Call Receive Tone";
            this.chkCallRxTone.UseVisualStyleBackColor = true;
            //
            // cmbRingStyle
            //
            this.cmbRingStyle.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbRingStyle.FormattingEnabled = true;
            this.cmbRingStyle.Location          = new System.Drawing.Point(137, 104);
            this.cmbRingStyle.Name                  = "cmbRingStyle";
            this.cmbRingStyle.Size                  = new System.Drawing.Size(120, 24);
            this.cmbRingStyle.TabIndex              = 5;
            this.cmbRingStyle.SelectedIndexChanged += new System.EventHandler(this.cmbRingStyle_SelectedIndexChanged);
            //
            // cmbCallType
            //
            this.cmbCallType.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbCallType.FormattingEnabled = true;
            this.cmbCallType.Location          = new System.Drawing.Point(137, 74);
            this.cmbCallType.Name                  = "cmbCallType";
            this.cmbCallType.Size                  = new System.Drawing.Size(120, 24);
            this.cmbCallType.TabIndex              = 5;
            this.cmbCallType.SelectedIndexChanged += new System.EventHandler(this.cmbCallType_SelectedIndexChanged);
            //
            // lblRingStyle
            //
            this.lblRingStyle.Location  = new System.Drawing.Point(20, 104);
            this.lblRingStyle.Name      = "lblRingStyle";
            this.lblRingStyle.Size      = new System.Drawing.Size(111, 24);
            this.lblRingStyle.TabIndex  = 4;
            this.lblRingStyle.Text      = "Ring Style";
            this.lblRingStyle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // txtName
            //
            this.txtName.InputString   = null;
            this.txtName.Location      = new System.Drawing.Point(137, 14);
            this.txtName.MaxByteLength = 0;
            this.txtName.Name          = "txtName";
            this.txtName.Size          = new System.Drawing.Size(120, 23);
            this.txtName.TabIndex      = 1;
            this.txtName.Leave        += new System.EventHandler(this.txtName_Leave);
            //
            // lblCallType
            //
            this.lblCallType.Enabled   = false;
            this.lblCallType.Location  = new System.Drawing.Point(23, 74);
            this.lblCallType.Name      = "lblCallType";
            this.lblCallType.Size      = new System.Drawing.Size(108, 24);
            this.lblCallType.TabIndex  = 4;
            this.lblCallType.Text      = "Call Type";
            this.lblCallType.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // lblName
            //
            this.lblName.Location  = new System.Drawing.Point(26, 14);
            this.lblName.Name      = "lblName";
            this.lblName.Size      = new System.Drawing.Size(105, 24);
            this.lblName.TabIndex  = 0;
            this.lblName.Text      = "Name";
            this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // lblCallId
            //
            this.lblCallId.Location  = new System.Drawing.Point(26, 44);
            this.lblCallId.Name      = "lblCallId";
            this.lblCallId.Size      = new System.Drawing.Size(105, 24);
            this.lblCallId.TabIndex  = 2;
            this.lblCallId.Text      = "Call ID";
            this.lblCallId.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // ContactForm
            //
            this.ClientSize = new System.Drawing.Size(314, 267);
            this.Controls.Add(this.pnlContact);
            this.Font         = new System.Drawing.Font("Arial", 10F);
            this.Name         = "ContactForm";
            this.Text         = "Digital Contact";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ContactForm_FormClosing);
            this.Load        += new System.EventHandler(this.ContactForm_Load);
            this.pnlContact.ResumeLayout(false);
            this.pnlContact.PerformLayout();
            this.openGD77groupbox.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
コード例 #9
0
        private void InitializeComponent()
        {
            this.pnlContact          = new System.Windows.Forms.Panel();
            this.btnInternetDownload = new System.Windows.Forms.Button();
            this.btnImport           = new System.Windows.Forms.Button();
            this.btnExport           = new System.Windows.Forms.Button();
            this.btnDeleteSelect     = new System.Windows.Forms.Button();
            this.txtCallId           = new DMR.SGTextBox();
            this.txtName             = new DMR.SGTextBox();
            this.cmbCallRxTone       = new System.Windows.Forms.ComboBox();
            this.cmbRingStyle        = new System.Windows.Forms.ComboBox();
            this.cmbRepeaterSlot     = new System.Windows.Forms.ComboBox();
            this.cmbType             = new System.Windows.Forms.ComboBox();
            this.cmbAddType          = new CustomCombo();
            this.btnClear            = new System.Windows.Forms.Button();
            this.btnDelete           = new System.Windows.Forms.Button();
            this.btnAdd      = new System.Windows.Forms.Button();
            this.dgvContacts = new System.Windows.Forms.DataGridView();
            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.pnlContact.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvContacts)).BeginInit();
            this.SuspendLayout();
            //
            // pnlContact
            //
            this.pnlContact.AutoScroll = true;
            this.pnlContact.AutoSize   = true;
            this.pnlContact.Controls.Add(this.btnInternetDownload);
            this.pnlContact.Controls.Add(this.btnImport);
            this.pnlContact.Controls.Add(this.btnExport);
            this.pnlContact.Controls.Add(this.btnDeleteSelect);
            this.pnlContact.Controls.Add(this.txtCallId);
            this.pnlContact.Controls.Add(this.txtName);
            this.pnlContact.Controls.Add(this.cmbCallRxTone);
            this.pnlContact.Controls.Add(this.cmbRingStyle);
            this.pnlContact.Controls.Add(this.cmbType);
            this.pnlContact.Controls.Add(this.cmbAddType);
            this.pnlContact.Controls.Add(this.btnClear);
            this.pnlContact.Controls.Add(this.btnDelete);
            this.pnlContact.Controls.Add(this.btnAdd);
            this.pnlContact.Controls.Add(this.dgvContacts);
            this.pnlContact.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.pnlContact.Location = new System.Drawing.Point(0, 0);
            this.pnlContact.Name     = "pnlContact";
            this.pnlContact.Size     = new System.Drawing.Size(965, 381);
            this.pnlContact.TabIndex = 0;
            //
            // btnInternetDownload
            //
            this.btnInternetDownload.Location = new System.Drawing.Point(616, 12);
            this.btnInternetDownload.Name     = "btnInternetDownload";
            this.btnInternetDownload.Size     = new System.Drawing.Size(156, 23);
            this.btnInternetDownload.TabIndex = 12;
            this.btnInternetDownload.Text     = "Internet Download";
            this.btnInternetDownload.UseVisualStyleBackColor = true;
            this.btnInternetDownload.Click += new System.EventHandler(this.btnDownload_Click);
            //
            // btnImport
            //
            this.btnImport.Location = new System.Drawing.Point(697, 41);
            this.btnImport.Name     = "btnImport";
            this.btnImport.Size     = new System.Drawing.Size(75, 23);
            this.btnImport.TabIndex = 11;
            this.btnImport.Text     = "Import";
            this.btnImport.UseVisualStyleBackColor = true;
            this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
            //
            // btnExport
            //
            this.btnExport.Location = new System.Drawing.Point(616, 41);
            this.btnExport.Name     = "btnExport";
            this.btnExport.Size     = new System.Drawing.Size(75, 23);
            this.btnExport.TabIndex = 11;
            this.btnExport.Text     = "Export";
            this.btnExport.UseVisualStyleBackColor = true;
            this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
            //
            // btnDeleteSelect
            //
            this.btnDeleteSelect.Location = new System.Drawing.Point(404, 42);
            this.btnDeleteSelect.Name     = "btnDeleteSelect";
            this.btnDeleteSelect.Size     = new System.Drawing.Size(146, 23);
            this.btnDeleteSelect.TabIndex = 10;
            this.btnDeleteSelect.Text     = "Delete Selected";
            this.btnDeleteSelect.UseVisualStyleBackColor = true;
            this.btnDeleteSelect.Click += new System.EventHandler(this.btnDeleteSelect_Click);
            //
            // txtCallId
            //
            this.txtCallId.InputString   = null;
            this.txtCallId.Location      = new System.Drawing.Point(240, 3);
            this.txtCallId.MaxByteLength = 0;
            this.txtCallId.Name          = "txtCallId";
            this.txtCallId.Size          = new System.Drawing.Size(61, 23);
            this.txtCallId.TabIndex      = 6;
            this.txtCallId.Visible       = false;
            //
            // txtName
            //
            this.txtName.InputString   = null;
            this.txtName.Location      = new System.Drawing.Point(163, 2);
            this.txtName.MaxByteLength = 0;
            this.txtName.Name          = "txtName";
            this.txtName.Size          = new System.Drawing.Size(61, 23);
            this.txtName.TabIndex      = 5;
            this.txtName.Visible       = false;
            //
            // cmbCallRxTone
            //
            this.cmbCallRxTone.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbCallRxTone.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
            this.cmbCallRxTone.FormattingEnabled = true;
            this.cmbCallRxTone.Location          = new System.Drawing.Point(409, 2);
            this.cmbCallRxTone.Name     = "cmbCallRxTone";
            this.cmbCallRxTone.Size     = new System.Drawing.Size(61, 24);
            this.cmbCallRxTone.TabIndex = 8;
            this.cmbCallRxTone.Visible  = false;
            //
            // cmbRingStyle
            //
            this.cmbRingStyle.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbRingStyle.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
            this.cmbRingStyle.FormattingEnabled = true;
            this.cmbRingStyle.Location          = new System.Drawing.Point(327, 2);
            this.cmbRingStyle.Name     = "cmbRingStyle";
            this.cmbRingStyle.Size     = new System.Drawing.Size(61, 24);
            this.cmbRingStyle.TabIndex = 7;
            this.cmbRingStyle.Visible  = false;
            //
            // cmbType
            //
            this.cmbType.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbType.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
            this.cmbType.FormattingEnabled = true;
            this.cmbType.Location          = new System.Drawing.Point(81, 3);
            this.cmbType.Name     = "cmbType";
            this.cmbType.Size     = new System.Drawing.Size(61, 24);
            this.cmbType.TabIndex = 4;
            this.cmbType.Visible  = false;
            //
            // cmbAddType
            //
            this.cmbAddType.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbAddType.FormattingEnabled = true;
            this.cmbAddType.Location          = new System.Drawing.Point(22, 43);
            this.cmbAddType.Name     = "cmbAddType";
            this.cmbAddType.Size     = new System.Drawing.Size(112, 24);
            this.cmbAddType.TabIndex = 0;

            //
            // cmbAddType
            //
            this.cmbRepeaterSlot.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbRepeaterSlot.FormattingEnabled = true;
            this.cmbRepeaterSlot.Location          = new System.Drawing.Point(22, 43);
            this.cmbRepeaterSlot.Name     = "cmbRepeaterSlot";
            this.cmbRepeaterSlot.Size     = new System.Drawing.Size(112, 24);
            this.cmbRepeaterSlot.TabIndex = 0;

            //
            // btnClear
            //
            this.btnClear.Location = new System.Drawing.Point(319, 42);
            this.btnClear.Name     = "btnClear";
            this.btnClear.Size     = new System.Drawing.Size(75, 23);
            this.btnClear.TabIndex = 3;
            this.btnClear.Text     = "Clear";
            this.btnClear.UseVisualStyleBackColor = true;
            this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
            //
            // btnDelete
            //
            this.btnDelete.Location = new System.Drawing.Point(234, 42);
            this.btnDelete.Name     = "btnDelete";
            this.btnDelete.Size     = new System.Drawing.Size(75, 23);
            this.btnDelete.TabIndex = 2;
            this.btnDelete.Text     = "Delete";
            this.btnDelete.UseVisualStyleBackColor = true;
            this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
            //
            // btnAdd
            //
            this.btnAdd.Location = new System.Drawing.Point(149, 42);
            this.btnAdd.Name     = "btnAdd";
            this.btnAdd.Size     = new System.Drawing.Size(75, 23);
            this.btnAdd.TabIndex = 1;
            this.btnAdd.Text     = "Add";
            this.btnAdd.UseVisualStyleBackColor = true;
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
            //
            // dgvContacts
            //
            this.dgvContacts.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvContacts.Location                   = new System.Drawing.Point(22, 73);
            this.dgvContacts.Name                       = "dgvContacts";
            this.dgvContacts.ReadOnly                   = true;
            this.dgvContacts.RowHeadersWidth            = 50;
            this.dgvContacts.RowTemplate.Height         = 23;
            this.dgvContacts.Size                       = new System.Drawing.Size(913, 292);
            this.dgvContacts.TabIndex                   = 9;
            this.dgvContacts.RowHeaderMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvContacts_RowHeaderMouseDoubleClick);
            this.dgvContacts.RowPostPaint              += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvContacts_RowPostPaint);
            this.dgvContacts.SelectionChanged          += new System.EventHandler(this.dgvContacts_SelectionChanged);
            //
            // dataGridViewTextBoxColumn1
            //
            this.dataGridViewTextBoxColumn1.HeaderText = "Column1";
            this.dataGridViewTextBoxColumn1.Name       = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly   = true;
            //
            // dataGridViewTextBoxColumn2
            //
            this.dataGridViewTextBoxColumn2.HeaderText = "Column2";
            this.dataGridViewTextBoxColumn2.Name       = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.ReadOnly   = true;
            //
            // dataGridViewTextBoxColumn3
            //
            this.dataGridViewTextBoxColumn3.HeaderText = "Column3";
            this.dataGridViewTextBoxColumn3.Name       = "dataGridViewTextBoxColumn3";
            this.dataGridViewTextBoxColumn3.ReadOnly   = true;
            //
            // dataGridViewTextBoxColumn4
            //
            this.dataGridViewTextBoxColumn4.HeaderText = "Column4";
            this.dataGridViewTextBoxColumn4.Name       = "dataGridViewTextBoxColumn4";
            this.dataGridViewTextBoxColumn4.ReadOnly   = true;
            //
            // dataGridViewTextBoxColumn5
            //
            this.dataGridViewTextBoxColumn5.HeaderText = "Column5";
            this.dataGridViewTextBoxColumn5.Name       = "dataGridViewTextBoxColumn5";
            this.dataGridViewTextBoxColumn5.ReadOnly   = true;
            //
            // ContactsForm
            //
            this.ClientSize = new System.Drawing.Size(965, 381);
            this.Controls.Add(this.pnlContact);
            this.Font = new System.Drawing.Font("Arial", 10F);
            this.Name = "ContactsForm";
            this.Text = "Contacts";
            this.pnlContact.ResumeLayout(false);
            this.pnlContact.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvContacts)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
コード例 #10
0
        private void InitializeComponent()
        {
            this.pnlZoneBasic = new CustomPanel();
            this.grpSub       = new GroupBox();
            this.cmbSubCh     = new CustomCombo();
            this.lblSubCh     = new Label();
            this.cmbSubZone   = new CustomCombo();
            this.lblSubZone   = new Label();
            this.grpMain      = new GroupBox();
            this.cmbMainCh    = new CustomCombo();
            this.lblMainCh    = new Label();
            this.cmbMainZone  = new CustomCombo();
            this.lblCurZone   = new Label();
            this.pnlZoneBasic.SuspendLayout();
            this.grpSub.SuspendLayout();
            this.grpMain.SuspendLayout();
            base.SuspendLayout();
            this.pnlZoneBasic.AutoScroll = true;
            this.pnlZoneBasic.AutoSize   = true;
            this.pnlZoneBasic.Controls.Add(this.grpSub);
            this.pnlZoneBasic.Controls.Add(this.grpMain);
            this.pnlZoneBasic.Dock     = DockStyle.Fill;
            this.pnlZoneBasic.Location = new Point(0, 0);
            this.pnlZoneBasic.Name     = "pnlZoneBasic";
            this.pnlZoneBasic.Size     = new Size(600, 197);
            this.pnlZoneBasic.TabIndex = 0;

            this.grpSub.Controls.Add(this.cmbSubCh);
            this.grpSub.Controls.Add(this.lblSubCh);
            this.grpSub.Controls.Add(this.cmbSubZone);
            this.grpSub.Controls.Add(this.lblSubZone);
            this.grpSub.Location                  = new Point(300, 35);
            this.grpSub.Name                      = "grpSub";
            this.grpSub.Size                      = new Size(250, 129);
            this.grpSub.TabIndex                  = 7;
            this.grpSub.TabStop                   = false;
            this.grpSub.Text                      = "Down";
            this.cmbSubCh.DropDownStyle           = ComboBoxStyle.DropDownList;
            this.cmbSubCh.FormattingEnabled       = true;
            this.cmbSubCh.Location                = new Point(98, 71);
            this.cmbSubCh.Name                    = "cmbSubCh";
            this.cmbSubCh.Size                    = new Size(120, 24);
            this.cmbSubCh.TabIndex                = 5;
            this.lblSubCh.Location                = new Point(19, 71);
            this.lblSubCh.Name                    = "lblSubCh";
            this.lblSubCh.Size                    = new Size(70, 24);
            this.lblSubCh.TabIndex                = 4;
            this.lblSubCh.Text                    = "Channel";
            this.lblSubCh.TextAlign               = ContentAlignment.MiddleRight;
            this.cmbSubZone.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cmbSubZone.FormattingEnabled     = true;
            this.cmbSubZone.Location              = new Point(98, 37);
            this.cmbSubZone.Name                  = "cmbSubZone";
            this.cmbSubZone.Size                  = new Size(120, 24);
            this.cmbSubZone.TabIndex              = 1;
            this.cmbSubZone.SelectedIndexChanged += new EventHandler(this.cmbSubZone_SelectedIndexChanged);
            this.cmbSubZone.DropDown             += new EventHandler(this.cmbSubZone_DropDown);
            this.lblSubZone.Location              = new Point(19, 37);
            this.lblSubZone.Name                  = "lblSubZone";
            this.lblSubZone.Size                  = new Size(70, 24);
            this.lblSubZone.TabIndex              = 0;
            this.lblSubZone.Text                  = "Zone";
            this.lblSubZone.TextAlign             = ContentAlignment.MiddleRight;
            this.grpMain.Controls.Add(this.cmbMainCh);
            this.grpMain.Controls.Add(this.lblMainCh);
            this.grpMain.Controls.Add(this.cmbMainZone);
            this.grpMain.Controls.Add(this.lblCurZone);
            this.grpMain.Location                  = new Point(25, 35);
            this.grpMain.Name                      = "grpMain";
            this.grpMain.Size                      = new Size(250, 129);
            this.grpMain.TabIndex                  = 6;
            this.grpMain.TabStop                   = false;
            this.grpMain.Text                      = "Up";
            this.cmbMainCh.DropDownStyle           = ComboBoxStyle.DropDownList;
            this.cmbMainCh.FormattingEnabled       = true;
            this.cmbMainCh.Location                = new Point(98, 71);
            this.cmbMainCh.Name                    = "cmbMainCh";
            this.cmbMainCh.Size                    = new Size(120, 24);
            this.cmbMainCh.TabIndex                = 3;
            this.lblMainCh.Location                = new Point(19, 71);
            this.lblMainCh.Name                    = "lblMainCh";
            this.lblMainCh.Size                    = new Size(70, 24);
            this.lblMainCh.TabIndex                = 2;
            this.lblMainCh.Text                    = "Channel";
            this.lblMainCh.TextAlign               = ContentAlignment.MiddleRight;
            this.cmbMainZone.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cmbMainZone.FormattingEnabled     = true;
            this.cmbMainZone.Location              = new Point(98, 37);
            this.cmbMainZone.Name                  = "cmbMainZone";
            this.cmbMainZone.Size                  = new Size(120, 24);
            this.cmbMainZone.TabIndex              = 1;
            this.cmbMainZone.SelectedIndexChanged += new EventHandler(this.cmbMainZone_SelectedIndexChanged);
            this.cmbMainZone.DropDown             += new EventHandler(this.cmbMainZone_DropDown);
            this.lblCurZone.Location               = new Point(19, 37);
            this.lblCurZone.Name                   = "lblCurZone";
            this.lblCurZone.Size                   = new Size(70, 24);
            this.lblCurZone.TabIndex               = 0;
            this.lblCurZone.Text                   = "Zone";
            this.lblCurZone.TextAlign              = ContentAlignment.MiddleRight;
            base.AutoScaleDimensions               = new SizeF(7f, 16f);
//			base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(600, 197);
            base.Controls.Add(this.pnlZoneBasic);
            this.Font         = new Font("Arial", 10f, FontStyle.Regular);
            base.Name         = "ZoneBasicForm";
            this.Text         = "Zone";
            base.Load        += new EventHandler(this.ZoneBasicForm_Load);
            base.FormClosing += new FormClosingEventHandler(this.ZoneBasicForm_FormClosing);
            this.pnlZoneBasic.ResumeLayout(false);
            this.grpSub.ResumeLayout(false);
            this.grpMain.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
コード例 #11
0
 private void InitializeComponent()
 {
     this.chkCallRxTone = new System.Windows.Forms.CheckBox();
     this.lblName       = new System.Windows.Forms.Label();
     this.lblCallId     = new System.Windows.Forms.Label();
     this.lblCallType   = new System.Windows.Forms.Label();
     this.pnlContact    = new CustomPanel();
     this.txtCallId     = new DMR.SGTextBox();
     this.cmbRingStyle  = new CustomCombo();
     this.cmbCallType   = new CustomCombo();
     this.lblRingStyle  = new System.Windows.Forms.Label();
     this.txtName       = new DMR.SGTextBox();
     this.pnlContact.SuspendLayout();
     this.SuspendLayout();
     //
     // chkCallRxTone
     //
     this.chkCallRxTone.AutoSize = true;
     this.chkCallRxTone.Location = new System.Drawing.Point(158, 173);
     this.chkCallRxTone.Name     = "chkCallRxTone";
     this.chkCallRxTone.Size     = new System.Drawing.Size(141, 20);
     this.chkCallRxTone.TabIndex = 6;
     this.chkCallRxTone.Text     = "Call Receive Tone";
     this.chkCallRxTone.UseVisualStyleBackColor = true;
     //
     // lblName
     //
     this.lblName.Location  = new System.Drawing.Point(60, 50);
     this.lblName.Name      = "lblName";
     this.lblName.Size      = new System.Drawing.Size(87, 24);
     this.lblName.TabIndex  = 0;
     this.lblName.Text      = "Name";
     this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblCallId
     //
     this.lblCallId.Location  = new System.Drawing.Point(60, 80);
     this.lblCallId.Name      = "lblCallId";
     this.lblCallId.Size      = new System.Drawing.Size(87, 24);
     this.lblCallId.TabIndex  = 2;
     this.lblCallId.Text      = "Call ID";
     this.lblCallId.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblCallType
     //
     this.lblCallType.Enabled   = false;
     this.lblCallType.Location  = new System.Drawing.Point(60, 110);
     this.lblCallType.Name      = "lblCallType";
     this.lblCallType.Size      = new System.Drawing.Size(87, 24);
     this.lblCallType.TabIndex  = 4;
     this.lblCallType.Text      = "Call Type";
     this.lblCallType.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // pnlContact
     //
     this.pnlContact.AutoScroll = true;
     this.pnlContact.AutoSize   = true;
     this.pnlContact.Controls.Add(this.txtCallId);
     this.pnlContact.Controls.Add(this.chkCallRxTone);
     this.pnlContact.Controls.Add(this.cmbRingStyle);
     this.pnlContact.Controls.Add(this.cmbCallType);
     this.pnlContact.Controls.Add(this.lblRingStyle);
     this.pnlContact.Controls.Add(this.txtName);
     this.pnlContact.Controls.Add(this.lblCallType);
     this.pnlContact.Controls.Add(this.lblName);
     this.pnlContact.Controls.Add(this.lblCallId);
     this.pnlContact.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlContact.Location = new System.Drawing.Point(0, 0);
     this.pnlContact.Name     = "pnlContact";
     this.pnlContact.Size     = new System.Drawing.Size(355, 228);
     this.pnlContact.TabIndex = 7;
     //
     // txtCallId
     //
     this.txtCallId.InputString   = null;
     this.txtCallId.Location      = new System.Drawing.Point(158, 80);
     this.txtCallId.MaxByteLength = 0;
     this.txtCallId.Name          = "txtCallId";
     this.txtCallId.Size          = new System.Drawing.Size(120, 23);
     this.txtCallId.TabIndex      = 3;
     this.txtCallId.Enter        += new System.EventHandler(this.txtCallId_Enter);
     this.txtCallId.Leave        += new System.EventHandler(this.txtCallId_Leave);
     this.txtCallId.Validating   += new System.ComponentModel.CancelEventHandler(this.txtCallId_Validating);
     //
     // cmbRingStyle
     //
     this.cmbRingStyle.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbRingStyle.FormattingEnabled = true;
     this.cmbRingStyle.Location          = new System.Drawing.Point(158, 140);
     this.cmbRingStyle.Name                  = "cmbRingStyle";
     this.cmbRingStyle.Size                  = new System.Drawing.Size(120, 24);
     this.cmbRingStyle.TabIndex              = 5;
     this.cmbRingStyle.SelectedIndexChanged += new System.EventHandler(this.cmbRingStyle_SelectedIndexChanged);
     //
     // cmbCallType
     //
     this.cmbCallType.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbCallType.FormattingEnabled = true;
     this.cmbCallType.Location          = new System.Drawing.Point(158, 110);
     this.cmbCallType.Name                  = "cmbCallType";
     this.cmbCallType.Size                  = new System.Drawing.Size(120, 24);
     this.cmbCallType.TabIndex              = 5;
     this.cmbCallType.SelectedIndexChanged += new System.EventHandler(this.cmbCallType_SelectedIndexChanged);
     //
     // lblRingStyle
     //
     this.lblRingStyle.Location  = new System.Drawing.Point(60, 140);
     this.lblRingStyle.Name      = "lblRingStyle";
     this.lblRingStyle.Size      = new System.Drawing.Size(87, 24);
     this.lblRingStyle.TabIndex  = 4;
     this.lblRingStyle.Text      = "Ring Style";
     this.lblRingStyle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtName
     //
     this.txtName.InputString   = null;
     this.txtName.Location      = new System.Drawing.Point(158, 50);
     this.txtName.MaxByteLength = 0;
     this.txtName.Name          = "txtName";
     this.txtName.Size          = new System.Drawing.Size(120, 23);
     this.txtName.TabIndex      = 1;
     this.txtName.Leave        += new System.EventHandler(this.txtName_Leave);
     //
     // ContactForm
     //
     this.ClientSize = new System.Drawing.Size(355, 228);
     this.Controls.Add(this.pnlContact);
     this.Font         = new System.Drawing.Font("Arial", 10F);
     this.Name         = "ContactForm";
     this.Text         = "Digital Contact";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ContactForm_FormClosing);
     this.Load        += new System.EventHandler(this.ContactForm_Load);
     this.pnlContact.ResumeLayout(false);
     this.pnlContact.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #12
0
        private void InitializeComponent()
        {
            DataGridViewCellStyle dataGridViewCellStyle  = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();

            this.pnlAttachment        = new CustomPanel();
            this.grpCall              = new GroupBox();
            this.cmbCallCh            = new CustomCombo();
            this.lblCallCh            = new Label();
            this.cmbCallZone          = new CustomCombo();
            this.lblCallZone          = new Label();
            this.grpRecording         = new GroupBox();
            this.chkRecordingSwitch   = new CheckBox();
            this.cmbRecordingInterval = new CustomCombo();
            this.lblRecordingInterval = new Label();
            this.grpGps        = new GroupBox();
            this.chkGpsSwitch  = new CheckBox();
            this.cmbTimeZone   = new CustomCombo();
            this.lblTimeZone   = new Label();
            this.grpP1         = new GroupBox();
            this.cmbP1Key      = new CustomCombo();
            this.lblP1Key      = new Label();
            this.grpFm         = new GroupBox();
            this.cmbBootCh     = new ComboBox();
            this.lblBootCh     = new Label();
            this.chkFmSwitch   = new CheckBox();
            this.dgvAttachment = new DataGridView();
            this.txtMessage    = new DataGridViewTextBoxColumn();
            this.pnlAttachment.SuspendLayout();
            this.grpCall.SuspendLayout();
            this.grpRecording.SuspendLayout();
            this.grpGps.SuspendLayout();
            this.grpP1.SuspendLayout();
            this.grpFm.SuspendLayout();
            ((ISupportInitialize)this.dgvAttachment).BeginInit();
            base.SuspendLayout();
            this.pnlAttachment.AutoScroll = true;
            this.pnlAttachment.AutoSize   = true;
            this.pnlAttachment.Controls.Add(this.grpCall);
            this.pnlAttachment.Controls.Add(this.grpRecording);
            this.pnlAttachment.Controls.Add(this.grpGps);
            this.pnlAttachment.Controls.Add(this.grpP1);
            this.pnlAttachment.Controls.Add(this.grpFm);
            this.pnlAttachment.Dock     = DockStyle.Fill;
            this.pnlAttachment.Location = new Point(0, 0);
            this.pnlAttachment.Name     = "pnlAttachment";
            this.pnlAttachment.Size     = new Size(759, 553);
            this.pnlAttachment.TabIndex = 3;
            this.grpCall.Controls.Add(this.cmbCallCh);
            this.grpCall.Controls.Add(this.lblCallCh);
            this.grpCall.Controls.Add(this.cmbCallZone);
            this.grpCall.Controls.Add(this.lblCallZone);
            this.grpCall.Location                  = new Point(43, 369);
            this.grpCall.Name                      = "grpCall";
            this.grpCall.Size                      = new Size(291, 100);
            this.grpCall.TabIndex                  = 18;
            this.grpCall.TabStop                   = false;
            this.grpCall.Text                      = "Call Channel";
            this.grpCall.Visible                   = false;
            this.cmbCallCh.DropDownStyle           = ComboBoxStyle.DropDownList;
            this.cmbCallCh.FormattingEnabled       = true;
            this.cmbCallCh.Location                = new Point(148, 57);
            this.cmbCallCh.Name                    = "cmbCallCh";
            this.cmbCallCh.Size                    = new Size(87, 20);
            this.cmbCallCh.TabIndex                = 17;
            this.lblCallCh.Location                = new Point(22, 57);
            this.lblCallCh.Name                    = "lblCallCh";
            this.lblCallCh.Size                    = new Size(119, 20);
            this.lblCallCh.TabIndex                = 16;
            this.lblCallCh.Text                    = "Channel";
            this.lblCallCh.TextAlign               = ContentAlignment.MiddleRight;
            this.cmbCallZone.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cmbCallZone.FormattingEnabled     = true;
            this.cmbCallZone.Location              = new Point(148, 23);
            this.cmbCallZone.Name                  = "cmbCallZone";
            this.cmbCallZone.Size                  = new Size(87, 20);
            this.cmbCallZone.TabIndex              = 15;
            this.cmbCallZone.SelectedIndexChanged += this.cmbCallZone_SelectedIndexChanged;
            this.lblCallZone.Location              = new Point(22, 23);
            this.lblCallZone.Name                  = "lblCallZone";
            this.lblCallZone.Size                  = new Size(119, 20);
            this.lblCallZone.TabIndex              = 14;
            this.lblCallZone.Text                  = "Zone";
            this.lblCallZone.TextAlign             = ContentAlignment.MiddleRight;
            this.grpRecording.Controls.Add(this.chkRecordingSwitch);
            this.grpRecording.Controls.Add(this.cmbRecordingInterval);
            this.grpRecording.Controls.Add(this.lblRecordingInterval);
            this.grpRecording.Location       = new Point(43, 251);
            this.grpRecording.Name           = "grpRecording";
            this.grpRecording.Size           = new Size(291, 100);
            this.grpRecording.TabIndex       = 13;
            this.grpRecording.TabStop        = false;
            this.grpRecording.Text           = "Recording";
            this.grpRecording.Visible        = false;
            this.chkRecordingSwitch.AutoSize = true;
            this.chkRecordingSwitch.Location = new Point(148, 23);
            this.chkRecordingSwitch.Name     = "chkRecordingSwitch";
            this.chkRecordingSwitch.Size     = new Size(120, 16);
            this.chkRecordingSwitch.TabIndex = 6;
            this.chkRecordingSwitch.Text     = "Recording Swicth";
            this.chkRecordingSwitch.UseVisualStyleBackColor = true;
            this.cmbRecordingInterval.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cmbRecordingInterval.FormattingEnabled     = true;
            this.cmbRecordingInterval.Location  = new Point(148, 51);
            this.cmbRecordingInterval.Name      = "cmbRecordingInterval";
            this.cmbRecordingInterval.Size      = new Size(84, 20);
            this.cmbRecordingInterval.TabIndex  = 8;
            this.lblRecordingInterval.Location  = new Point(22, 51);
            this.lblRecordingInterval.Name      = "lblRecordingInterval";
            this.lblRecordingInterval.Size      = new Size(119, 20);
            this.lblRecordingInterval.TabIndex  = 7;
            this.lblRecordingInterval.Text      = "Recording Interval";
            this.lblRecordingInterval.TextAlign = ContentAlignment.MiddleRight;
            this.grpGps.Controls.Add(this.chkGpsSwitch);
            this.grpGps.Controls.Add(this.cmbTimeZone);
            this.grpGps.Controls.Add(this.lblTimeZone);
            this.grpGps.Location       = new Point(43, 128);
            this.grpGps.Name           = "grpGps";
            this.grpGps.Size           = new Size(291, 100);
            this.grpGps.TabIndex       = 12;
            this.grpGps.TabStop        = false;
            this.grpGps.Text           = "Gps";
            this.chkGpsSwitch.AutoSize = true;
            this.chkGpsSwitch.Location = new Point(148, 23);
            this.chkGpsSwitch.Name     = "chkGpsSwitch";
            this.chkGpsSwitch.Size     = new Size(84, 16);
            this.chkGpsSwitch.TabIndex = 6;
            this.chkGpsSwitch.Text     = "Gps Switch";
            this.chkGpsSwitch.UseVisualStyleBackColor = true;
            this.cmbTimeZone.DropDownStyle            = ComboBoxStyle.DropDownList;
            this.cmbTimeZone.FormattingEnabled        = true;
            this.cmbTimeZone.Location  = new Point(148, 51);
            this.cmbTimeZone.Name      = "cmbTimeZone";
            this.cmbTimeZone.Size      = new Size(84, 20);
            this.cmbTimeZone.TabIndex  = 8;
            this.lblTimeZone.Location  = new Point(22, 51);
            this.lblTimeZone.Name      = "lblTimeZone";
            this.lblTimeZone.Size      = new Size(119, 20);
            this.lblTimeZone.TabIndex  = 7;
            this.lblTimeZone.Text      = "TimeZone";
            this.lblTimeZone.TextAlign = ContentAlignment.MiddleRight;
            this.grpP1.Controls.Add(this.cmbP1Key);
            this.grpP1.Controls.Add(this.lblP1Key);
            this.grpP1.Location             = new Point(43, 22);
            this.grpP1.Name                 = "grpP1";
            this.grpP1.Size                 = new Size(291, 88);
            this.grpP1.TabIndex             = 12;
            this.grpP1.TabStop              = false;
            this.grpP1.Text                 = "P1 ";
            this.cmbP1Key.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbP1Key.FormattingEnabled = true;
            this.cmbP1Key.Location          = new Point(148, 36);
            this.cmbP1Key.Name              = "cmbP1Key";
            this.cmbP1Key.Size              = new Size(84, 20);
            this.cmbP1Key.TabIndex          = 10;
            this.lblP1Key.Location          = new Point(22, 36);
            this.lblP1Key.Name              = "lblP1Key";
            this.lblP1Key.Size              = new Size(119, 20);
            this.lblP1Key.TabIndex          = 9;
            this.lblP1Key.Text              = "P1 Key";
            this.lblP1Key.TextAlign         = ContentAlignment.MiddleRight;
            this.grpFm.Controls.Add(this.cmbBootCh);
            this.grpFm.Controls.Add(this.lblBootCh);
            this.grpFm.Controls.Add(this.chkFmSwitch);
            this.grpFm.Controls.Add(this.dgvAttachment);
            this.grpFm.Location                              = new Point(362, 22);
            this.grpFm.Name                                  = "grpFm";
            this.grpFm.Size                                  = new Size(323, 496);
            this.grpFm.TabIndex                              = 11;
            this.grpFm.TabStop                               = false;
            this.grpFm.Text                                  = "FM";
            this.cmbBootCh.DropDownStyle                     = ComboBoxStyle.DropDownList;
            this.cmbBootCh.FormattingEnabled                 = true;
            this.cmbBootCh.Location                          = new Point(131, 56);
            this.cmbBootCh.Name                              = "cmbBootCh";
            this.cmbBootCh.Size                              = new Size(121, 20);
            this.cmbBootCh.TabIndex                          = 11;
            this.lblBootCh.Location                          = new Point(34, 56);
            this.lblBootCh.Name                              = "lblBootCh";
            this.lblBootCh.Size                              = new Size(90, 20);
            this.lblBootCh.TabIndex                          = 10;
            this.lblBootCh.Text                              = "Boot Channel";
            this.lblBootCh.TextAlign                         = ContentAlignment.MiddleRight;
            this.chkFmSwitch.AutoSize                        = true;
            this.chkFmSwitch.Location                        = new Point(131, 29);
            this.chkFmSwitch.Name                            = "chkFmSwitch";
            this.chkFmSwitch.Size                            = new Size(102, 16);
            this.chkFmSwitch.TabIndex                        = 6;
            this.chkFmSwitch.Text                            = "Boot Enter Fm";
            this.chkFmSwitch.UseVisualStyleBackColor         = true;
            this.dgvAttachment.AllowUserToAddRows            = false;
            dataGridViewCellStyle.Alignment                  = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle.BackColor                  = SystemColors.Control;
            dataGridViewCellStyle.Font                       = new Font("Arial", 10f, FontStyle.Regular);
            dataGridViewCellStyle.ForeColor                  = SystemColors.WindowText;
            dataGridViewCellStyle.SelectionBackColor         = SystemColors.Highlight;
            dataGridViewCellStyle.SelectionForeColor         = SystemColors.HighlightText;
            dataGridViewCellStyle.WrapMode                   = DataGridViewTriState.True;
            this.dgvAttachment.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
            this.dgvAttachment.ColumnHeadersHeightSizeMode   = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvAttachment.Columns.AddRange(this.txtMessage);
            this.dgvAttachment.Location               = new Point(29, 88);
            this.dgvAttachment.Name                   = "dgvAttachment";
            this.dgvAttachment.RowTemplate.Height     = 23;
            this.dgvAttachment.Size                   = new Size(264, 393);
            this.dgvAttachment.TabIndex               = 2;
            this.dgvAttachment.RowPostPaint          += this.dgvAttachment_RowPostPaint;
            this.dgvAttachment.CellEndEdit           += this.dgvAttachment_CellEndEdit;
            this.dgvAttachment.EditingControlShowing += this.dgvAttachment_EditingControlShowing;
            dataGridViewCellStyle2.Alignment          = DataGridViewContentAlignment.MiddleCenter;
            this.txtMessage.DefaultCellStyle          = dataGridViewCellStyle2;
            this.txtMessage.HeaderText                = "Frequency";
            this.txtMessage.MaxInputLength            = 50;
            this.txtMessage.Name     = "txtMessage";
            this.txtMessage.Width    = 200;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
//			base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(759, 553);
            base.Controls.Add(this.pnlAttachment);
            this.Font         = new Font("Arial", 10f, FontStyle.Regular);
            base.Name         = "AttachmentForm";
            this.Text         = "Attachment";
            base.Load        += this.AttachmentForm_Load;
            base.FormClosing += this.AttachmentForm_FormClosing;
            this.pnlAttachment.ResumeLayout(false);
            this.grpCall.ResumeLayout(false);
            this.grpRecording.ResumeLayout(false);
            this.grpRecording.PerformLayout();
            this.grpGps.ResumeLayout(false);
            this.grpGps.PerformLayout();
            this.grpP1.ResumeLayout(false);
            this.grpFm.ResumeLayout(false);
            this.grpFm.PerformLayout();
            ((ISupportInitialize)this.dgvAttachment).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
コード例 #13
0
		private void InitializeComponent()
		{
			this.panel1 = new CustomPanel();
			this.grpListParam = new System.Windows.Forms.GroupBox();
			this.chkTalkback = new System.Windows.Forms.CheckBox();
			this.chkChMark = new System.Windows.Forms.CheckBox();
			this.cmbPriorityCh2 = new CustomCombo();
			this.lblTxDesignatedCh = new System.Windows.Forms.Label();
			this.cmbPriorityCh1 = new CustomCombo();
			this.lblPriorityCh1 = new System.Windows.Forms.Label();
			this.lblSignalingHold = new System.Windows.Forms.Label();
			this.label_0 = new System.Windows.Forms.Label();
			this.nudPrioritySample = new CustomNumericUpDown();
			this.lblPriorityCh2 = new System.Windows.Forms.Label();
			this.nudSignalingHold = new CustomNumericUpDown();
			this.cmbTxDesignatedCh = new CustomCombo();
			this.cmbPlType = new CustomCombo();
			this.lblPrioritySample = new System.Windows.Forms.Label();
			this.btnDown = new System.Windows.Forms.Button();
			this.btnUp = new System.Windows.Forms.Button();
			this.txtName = new DMR.SGTextBox();
			this.grpSelected = new System.Windows.Forms.GroupBox();
			this.lstSelected = new System.Windows.Forms.ListBox();
			this.grpUnselected = new System.Windows.Forms.GroupBox();
			this.lstUnselected = new System.Windows.Forms.ListBox();
			this.lblName = new System.Windows.Forms.Label();
			this.btnDel = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.panel1.SuspendLayout();
			this.grpListParam.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.nudPrioritySample)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.nudSignalingHold)).BeginInit();
			this.grpSelected.SuspendLayout();
			this.grpUnselected.SuspendLayout();
			this.SuspendLayout();
			// 
			// panel1
			// 
			this.panel1.AutoScroll = true;
			this.panel1.AutoSize = true;
			this.panel1.Controls.Add(this.grpListParam);
			this.panel1.Controls.Add(this.btnDown);
			this.panel1.Controls.Add(this.btnUp);
			this.panel1.Controls.Add(this.txtName);
			this.panel1.Controls.Add(this.grpSelected);
			this.panel1.Controls.Add(this.grpUnselected);
			this.panel1.Controls.Add(this.lblName);
			this.panel1.Controls.Add(this.btnDel);
			this.panel1.Controls.Add(this.btnAdd);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(760, 744);
			this.panel1.TabIndex = 0;
			// 
			// grpListParam
			// 
			this.grpListParam.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.grpListParam.Controls.Add(this.chkTalkback);
			this.grpListParam.Controls.Add(this.chkChMark);
			this.grpListParam.Controls.Add(this.cmbPriorityCh2);
			this.grpListParam.Controls.Add(this.lblTxDesignatedCh);
			this.grpListParam.Controls.Add(this.cmbPriorityCh1);
			this.grpListParam.Controls.Add(this.lblPriorityCh1);
			this.grpListParam.Controls.Add(this.lblSignalingHold);
			this.grpListParam.Controls.Add(this.label_0);
			this.grpListParam.Controls.Add(this.nudPrioritySample);
			this.grpListParam.Controls.Add(this.lblPriorityCh2);
			this.grpListParam.Controls.Add(this.nudSignalingHold);
			this.grpListParam.Controls.Add(this.cmbTxDesignatedCh);
			this.grpListParam.Controls.Add(this.cmbPlType);
			this.grpListParam.Controls.Add(this.lblPrioritySample);
			this.grpListParam.Location = new System.Drawing.Point(113, 458);
			this.grpListParam.Name = "grpListParam";
			this.grpListParam.Size = new System.Drawing.Size(517, 269);
			this.grpListParam.TabIndex = 24;
			this.grpListParam.TabStop = false;
			this.grpListParam.Text = "Scanparameter";
			// 
			// chkTalkback
			// 
			this.chkTalkback.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.chkTalkback.AutoSize = true;
			this.chkTalkback.Location = new System.Drawing.Point(251, 13);
			this.chkTalkback.Name = "chkTalkback";
			this.chkTalkback.Size = new System.Drawing.Size(82, 20);
			this.chkTalkback.TabIndex = 6;
			this.chkTalkback.Text = "Talkback";
			this.chkTalkback.UseVisualStyleBackColor = true;
			// 
			// chkChMark
			// 
			this.chkChMark.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.chkChMark.AutoSize = true;
			this.chkChMark.Location = new System.Drawing.Point(251, 43);
			this.chkChMark.Name = "chkChMark";
			this.chkChMark.Size = new System.Drawing.Size(128, 20);
			this.chkChMark.TabIndex = 7;
			this.chkChMark.Text = "Channel Marker";
			this.chkChMark.UseVisualStyleBackColor = true;
			// 
			// cmbPriorityCh2
			// 
			this.cmbPriorityCh2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.cmbPriorityCh2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbPriorityCh2.FormattingEnabled = true;
			this.cmbPriorityCh2.Location = new System.Drawing.Point(251, 224);
			this.cmbPriorityCh2.Name = "cmbPriorityCh2";
			this.cmbPriorityCh2.Size = new System.Drawing.Size(166, 24);
			this.cmbPriorityCh2.TabIndex = 19;
			this.cmbPriorityCh2.SelectedIndexChanged += new System.EventHandler(this.cmbPriorityCh2_SelectedIndexChanged);
			// 
			// lblTxDesignatedCh
			// 
			this.lblTxDesignatedCh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.lblTxDesignatedCh.Location = new System.Drawing.Point(73, 73);
			this.lblTxDesignatedCh.Name = "lblTxDesignatedCh";
			this.lblTxDesignatedCh.Size = new System.Drawing.Size(167, 24);
			this.lblTxDesignatedCh.TabIndex = 8;
			this.lblTxDesignatedCh.Text = "Tx Designated Channel";
			this.lblTxDesignatedCh.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// cmbPriorityCh1
			// 
			this.cmbPriorityCh1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.cmbPriorityCh1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbPriorityCh1.FormattingEnabled = true;
			this.cmbPriorityCh1.Location = new System.Drawing.Point(251, 194);
			this.cmbPriorityCh1.Name = "cmbPriorityCh1";
			this.cmbPriorityCh1.Size = new System.Drawing.Size(166, 24);
			this.cmbPriorityCh1.TabIndex = 17;
			this.cmbPriorityCh1.SelectedIndexChanged += new System.EventHandler(this.cmbPriorityCh1_SelectedIndexChanged);
			// 
			// lblPriorityCh1
			// 
			this.lblPriorityCh1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.lblPriorityCh1.Location = new System.Drawing.Point(73, 193);
			this.lblPriorityCh1.Name = "lblPriorityCh1";
			this.lblPriorityCh1.Size = new System.Drawing.Size(167, 24);
			this.lblPriorityCh1.TabIndex = 16;
			this.lblPriorityCh1.Text = "Priority Channel 1";
			this.lblPriorityCh1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// lblSignalingHold
			// 
			this.lblSignalingHold.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.lblSignalingHold.Location = new System.Drawing.Point(73, 133);
			this.lblSignalingHold.Name = "lblSignalingHold";
			this.lblSignalingHold.Size = new System.Drawing.Size(167, 24);
			this.lblSignalingHold.TabIndex = 12;
			this.lblSignalingHold.Text = "Signaling Hold Time [ms]";
			this.lblSignalingHold.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label_0
			// 
			this.label_0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.label_0.Location = new System.Drawing.Point(73, 103);
			this.label_0.Name = "label_0";
			this.label_0.Size = new System.Drawing.Size(167, 24);
			this.label_0.TabIndex = 10;
			this.label_0.Text = "PL Type";
			this.label_0.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// nudPrioritySample
			// 
			this.nudPrioritySample.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.nudPrioritySample.Increment = new decimal(new int[] {
            250,
            0,
            0,
            0});
			this.nudPrioritySample.Location = new System.Drawing.Point(251, 164);
			this.nudPrioritySample.Maximum = new decimal(new int[] {
            7750,
            0,
            0,
            0});
			this.nudPrioritySample.Minimum = new decimal(new int[] {
            750,
            0,
            0,
            0});
			this.nudPrioritySample.Name = "nudPrioritySample";
			this.nudPrioritySample.Size = new System.Drawing.Size(166, 23);
			this.nudPrioritySample.TabIndex = 15;
			this.nudPrioritySample.Value = new decimal(new int[] {
            750,
            0,
            0,
            0});
			// 
			// lblPriorityCh2
			// 
			this.lblPriorityCh2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.lblPriorityCh2.Location = new System.Drawing.Point(73, 223);
			this.lblPriorityCh2.Name = "lblPriorityCh2";
			this.lblPriorityCh2.Size = new System.Drawing.Size(167, 24);
			this.lblPriorityCh2.TabIndex = 18;
			this.lblPriorityCh2.Text = "Priority Channel 2";
			this.lblPriorityCh2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// nudSignalingHold
			// 
			this.nudSignalingHold.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.nudSignalingHold.Increment = new decimal(new int[] {
            25,
            0,
            0,
            0});
			this.nudSignalingHold.Location = new System.Drawing.Point(251, 134);
			this.nudSignalingHold.Maximum = new decimal(new int[] {
            6375,
            0,
            0,
            0});
			this.nudSignalingHold.Minimum = new decimal(new int[] {
            50,
            0,
            0,
            0});
			this.nudSignalingHold.Name = "nudSignalingHold";
			this.nudSignalingHold.Size = new System.Drawing.Size(166, 23);
			this.nudSignalingHold.TabIndex = 13;
			this.nudSignalingHold.Value = new decimal(new int[] {
            50,
            0,
            0,
            0});
			// 
			// cmbTxDesignatedCh
			// 
			this.cmbTxDesignatedCh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.cmbTxDesignatedCh.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbTxDesignatedCh.FormattingEnabled = true;
			this.cmbTxDesignatedCh.Location = new System.Drawing.Point(251, 74);
			this.cmbTxDesignatedCh.Name = "cmbTxDesignatedCh";
			this.cmbTxDesignatedCh.Size = new System.Drawing.Size(166, 24);
			this.cmbTxDesignatedCh.TabIndex = 9;
			// 
			// cmbPlType
			// 
			this.cmbPlType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.cmbPlType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbPlType.FormattingEnabled = true;
			this.cmbPlType.Items.AddRange(new object[] {
            "Disabled",
            "Priority channel",
            "Non-priority channel",
            "Priority channel and non-priority channel"});
			this.cmbPlType.Location = new System.Drawing.Point(251, 104);
			this.cmbPlType.Name = "cmbPlType";
			this.cmbPlType.Size = new System.Drawing.Size(166, 24);
			this.cmbPlType.TabIndex = 11;
			// 
			// lblPrioritySample
			// 
			this.lblPrioritySample.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.lblPrioritySample.Location = new System.Drawing.Point(73, 163);
			this.lblPrioritySample.Name = "lblPrioritySample";
			this.lblPrioritySample.Size = new System.Drawing.Size(167, 24);
			this.lblPrioritySample.TabIndex = 14;
			this.lblPrioritySample.Text = "Priority Sample Time [ms]";
			this.lblPrioritySample.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// btnDown
			// 
			this.btnDown.Location = new System.Drawing.Point(665, 223);
			this.btnDown.Name = "btnDown";
			this.btnDown.Size = new System.Drawing.Size(75, 23);
			this.btnDown.TabIndex = 23;
			this.btnDown.Text = "Down";
			this.btnDown.UseVisualStyleBackColor = true;
			this.btnDown.Click += new System.EventHandler(this.btnDown_Click);
			// 
			// btnUp
			// 
			this.btnUp.Location = new System.Drawing.Point(665, 171);
			this.btnUp.Name = "btnUp";
			this.btnUp.Size = new System.Drawing.Size(75, 23);
			this.btnUp.TabIndex = 22;
			this.btnUp.Text = "Up";
			this.btnUp.UseVisualStyleBackColor = true;
			this.btnUp.Click += new System.EventHandler(this.btnUp_Click);
			// 
			// txtName
			// 
			this.txtName.InputString = null;
			this.txtName.Location = new System.Drawing.Point(322, 22);
			this.txtName.MaxByteLength = 0;
			this.txtName.Name = "txtName";
			this.txtName.Size = new System.Drawing.Size(146, 23);
			this.txtName.TabIndex = 1;
			this.txtName.Leave += new System.EventHandler(this.txtName_Leave);
			// 
			// grpSelected
			// 
			this.grpSelected.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
			this.grpSelected.Controls.Add(this.lstSelected);
			this.grpSelected.Location = new System.Drawing.Point(425, 59);
			this.grpSelected.Name = "grpSelected";
			this.grpSelected.Size = new System.Drawing.Size(205, 412);
			this.grpSelected.TabIndex = 21;
			this.grpSelected.TabStop = false;
			this.grpSelected.Text = "Member";
			// 
			// lstSelected
			// 
			this.lstSelected.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
			this.lstSelected.FormattingEnabled = true;
			this.lstSelected.ItemHeight = 16;
			this.lstSelected.Location = new System.Drawing.Point(30, 31);
			this.lstSelected.Name = "lstSelected";
			this.lstSelected.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
			this.lstSelected.Size = new System.Drawing.Size(150, 324);
			this.lstSelected.TabIndex = 5;
			this.lstSelected.SelectedIndexChanged += new System.EventHandler(this.lstSelected_SelectedIndexChanged);
			this.lstSelected.DoubleClick += new System.EventHandler(this.lstSelected_DoubleClick);
			// 
			// grpUnselected
			// 
			this.grpUnselected.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
			this.grpUnselected.Controls.Add(this.lstUnselected);
			this.grpUnselected.Location = new System.Drawing.Point(113, 59);
			this.grpUnselected.Name = "grpUnselected";
			this.grpUnselected.Size = new System.Drawing.Size(205, 412);
			this.grpUnselected.TabIndex = 2;
			this.grpUnselected.TabStop = false;
			this.grpUnselected.Text = "Available";
			// 
			// lstUnselected
			// 
			this.lstUnselected.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
			this.lstUnselected.FormattingEnabled = true;
			this.lstUnselected.ItemHeight = 16;
			this.lstUnselected.Location = new System.Drawing.Point(32, 31);
			this.lstUnselected.Name = "lstUnselected";
			this.lstUnselected.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
			this.lstUnselected.Size = new System.Drawing.Size(150, 324);
			this.lstUnselected.TabIndex = 0;
			// 
			// lblName
			// 
			this.lblName.Location = new System.Drawing.Point(258, 22);
			this.lblName.Name = "lblName";
			this.lblName.Size = new System.Drawing.Size(60, 24);
			this.lblName.TabIndex = 0;
			this.lblName.Text = "Name";
			this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// btnDel
			// 
			this.btnDel.Location = new System.Drawing.Point(333, 223);
			this.btnDel.Name = "btnDel";
			this.btnDel.Size = new System.Drawing.Size(75, 23);
			this.btnDel.TabIndex = 4;
			this.btnDel.Text = "Delete";
			this.btnDel.UseVisualStyleBackColor = true;
			this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.Location = new System.Drawing.Point(333, 171);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new System.Drawing.Size(75, 23);
			this.btnAdd.TabIndex = 3;
			this.btnAdd.Text = "Add";
			this.btnAdd.UseVisualStyleBackColor = true;
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// NormalScanForm
			// 
			this.ClientSize = new System.Drawing.Size(760, 744);
			this.Controls.Add(this.panel1);
			this.Font = new System.Drawing.Font("Arial", 10F);
			this.Name = "NormalScanForm";
			this.Text = "Normal Scan";
			this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.NormalScanForm_FormClosing);
			this.Load += new System.EventHandler(this.NormalScanForm_Load);
			this.panel1.ResumeLayout(false);
			this.panel1.PerformLayout();
			this.grpListParam.ResumeLayout(false);
			this.grpListParam.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.nudPrioritySample)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.nudSignalingHold)).EndInit();
			this.grpSelected.ResumeLayout(false);
			this.grpUnselected.ResumeLayout(false);
			this.ResumeLayout(false);
			this.PerformLayout();

		}
コード例 #14
0
ファイル: ButtonForm.cs プロジェクト: sp9usb/OpenGD77CPS
        private void InitializeComponent()
        {
            DataGridViewCellStyle dataGridViewCellStyle = new DataGridViewCellStyle();

            this.pnlButton      = new CustomPanel();
            this.class4_1       = new CustomCombo();
            this.dgvOneTouch    = new DataGridView();
            this.cmbMode        = new DataGridViewComboBoxColumn();
            this.cmbCallType    = new DataGridViewComboBoxColumn();
            this.cmbCallList    = new DataGridViewComboBoxColumn();
            this.cmbMsg         = new DataGridViewComboBoxColumn();
            this.lblEmgShortDur = new Label();
            this.class4_2       = new CustomCombo();
            this.lblLongDur     = new Label();
            this.cmbTkLong      = new CustomCombo();
            this.nudEmgShortDur = new CustomNumericUpDown();
            this.cmbTkShort     = new CustomCombo();
            this.nudLongDur     = new CustomNumericUpDown();
            this.class4_3       = new CustomCombo();
            this.lblSK1         = new Label();
            this.class4_0       = new CustomCombo();
            this.lblSK2         = new Label();
            this.lblLongPress   = new Label();
            this.lblTK          = new Label();
            this.lblShortPress  = new Label();
            this.pnlButton.SuspendLayout();
            ((ISupportInitialize)this.dgvOneTouch).BeginInit();
            ((ISupportInitialize)this.nudEmgShortDur).BeginInit();
            ((ISupportInitialize)this.nudLongDur).BeginInit();
            base.SuspendLayout();
            this.pnlButton.AutoScroll = true;
            this.pnlButton.AutoSize   = true;
            this.pnlButton.Controls.Add(this.class4_1);
            this.pnlButton.Controls.Add(this.dgvOneTouch);
            this.pnlButton.Controls.Add(this.lblEmgShortDur);
            this.pnlButton.Controls.Add(this.class4_2);
            this.pnlButton.Controls.Add(this.lblLongDur);
            this.pnlButton.Controls.Add(this.cmbTkLong);
            this.pnlButton.Controls.Add(this.nudEmgShortDur);
            this.pnlButton.Controls.Add(this.cmbTkShort);
            this.pnlButton.Controls.Add(this.nudLongDur);
            this.pnlButton.Controls.Add(this.class4_3);
            this.pnlButton.Controls.Add(this.lblSK1);
            this.pnlButton.Controls.Add(this.class4_0);
            this.pnlButton.Controls.Add(this.lblSK2);
            this.pnlButton.Controls.Add(this.lblLongPress);
            this.pnlButton.Controls.Add(this.lblTK);
            this.pnlButton.Controls.Add(this.lblShortPress);
            this.pnlButton.Dock             = DockStyle.Fill;
            this.pnlButton.Location         = new Point(0, 0);
            this.pnlButton.Name             = "pnlButton";
            this.pnlButton.Size             = new Size(627, 499);
            this.pnlButton.TabIndex         = 16;
            this.class4_1.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.class4_1.FormattingEnabled = true;
            this.class4_1.Location          = new Point(170, 137);
            this.class4_1.Name                             = "cmbSk1Short";
            this.class4_1.Size                             = new Size(179, 24);
            this.class4_1.TabIndex                         = 7;
            this.class4_1.SelectedIndexChanged            += new EventHandler(this.class4_1_SelectedIndexChanged);
            this.dgvOneTouch.AllowUserToAddRows            = false;
            dataGridViewCellStyle.Alignment                = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle.BackColor                = SystemColors.Control;
            dataGridViewCellStyle.Font                     = new Font("Arial", 10f, FontStyle.Regular);
            dataGridViewCellStyle.ForeColor                = SystemColors.WindowText;
            dataGridViewCellStyle.SelectionBackColor       = SystemColors.Highlight;
            dataGridViewCellStyle.SelectionForeColor       = SystemColors.HighlightText;
            dataGridViewCellStyle.WrapMode                 = DataGridViewTriState.True;
            this.dgvOneTouch.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
            this.dgvOneTouch.ColumnHeadersHeightSizeMode   = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvOneTouch.Columns.AddRange(this.cmbMode, this.cmbCallType, this.cmbCallList, this.cmbMsg);
            this.dgvOneTouch.EditMode           = DataGridViewEditMode.EditOnEnter;
            this.dgvOneTouch.Location           = new Point(26, 259);
            this.dgvOneTouch.Name               = "dgvOneTouch";
            this.dgvOneTouch.RowTemplate.Height = 23;
            this.dgvOneTouch.Size               = new Size(574, 212);
            this.dgvOneTouch.TabIndex           = 15;
            this.dgvOneTouch.CellValueChanged  += new DataGridViewCellEventHandler(this.dgvOneTouch_CellValueChanged);
            this.dgvOneTouch.RowPostPaint      += new DataGridViewRowPostPaintEventHandler(this.dgvOneTouch_RowPostPaint);
            this.dgvOneTouch.DataError         += new DataGridViewDataErrorEventHandler(this.dgvOneTouch_DataError);
            this.cmbMode.DisplayStyle           = DataGridViewComboBoxDisplayStyle.Nothing;
            this.cmbMode.HeaderText             = "Mode";
            this.cmbMode.Name             = "cmbMode";
            this.cmbCallType.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
            this.cmbCallType.HeaderText   = "Call Type";
            this.cmbCallType.Name         = "cmbCallType";
            this.cmbCallList.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
            this.cmbCallList.HeaderText   = "Call";
            this.cmbCallList.Name         = "cmbCallList";
            this.cmbMsg.DisplayStyle      = DataGridViewComboBoxDisplayStyle.Nothing;
            this.cmbMsg.HeaderText        = "Text Message";
            this.cmbMsg.Name                     = "cmbMsg";
            this.cmbMsg.Width                    = 150;
            this.lblEmgShortDur.Location         = new Point(106, 36);
            this.lblEmgShortDur.Name             = "lblEmgShortDur";
            this.lblEmgShortDur.Size             = new Size(245, 24);
            this.lblEmgShortDur.TabIndex         = 0;
            this.lblEmgShortDur.Text             = "Emergency Short Press Duration [ms]";
            this.lblEmgShortDur.TextAlign        = ContentAlignment.MiddleRight;
            this.lblEmgShortDur.Visible          = false;
            this.class4_2.DropDownStyle          = ComboBoxStyle.DropDownList;
            this.class4_2.FormattingEnabled      = true;
            this.class4_2.Location               = new Point(362, 137);
            this.class4_2.Name                   = "cmbSk1Long";
            this.class4_2.Size                   = new Size(179, 24);
            this.class4_2.TabIndex               = 8;
            this.class4_2.SelectedIndexChanged  += new EventHandler(this.class4_2_SelectedIndexChanged);
            this.lblLongDur.Location             = new Point(106, 68);
            this.lblLongDur.Name                 = "lblLongDur";
            this.lblLongDur.Size                 = new Size(245, 24);
            this.lblLongDur.TabIndex             = 2;
            this.lblLongDur.Text                 = "Long Press Duration [ms]";
            this.lblLongDur.TextAlign            = ContentAlignment.MiddleRight;
            this.cmbTkLong.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cmbTkLong.FormattingEnabled     = true;
            this.cmbTkLong.Location              = new Point(362, 197);
            this.cmbTkLong.Name                  = "cmbTkLong";
            this.cmbTkLong.Size                  = new Size(179, 24);
            this.cmbTkLong.TabIndex              = 14;
            this.cmbTkLong.SelectedIndexChanged += new EventHandler(this.cmbTkLong_SelectedIndexChanged);
            this.nudEmgShortDur.Increment        = new decimal(new int[4]
            {
                50,
                0,
                0,
                0
            });
            this.nudEmgShortDur.method_2(null);
            this.nudEmgShortDur.Location = new Point(367, 36);
            this.nudEmgShortDur.Maximum  = new decimal(new int[4]
            {
                750,
                0,
                0,
                0
            });
            this.nudEmgShortDur.Minimum = new decimal(new int[4]
            {
                50,
                0,
                0,
                0
            });
            this.nudEmgShortDur.Name = "nudEmgShortDur";
            this.nudEmgShortDur.method_6(null);
            //CustomNumericUpDown @class = this.nudEmgShortDur;
            int[] bits = new int[4];
            this.nudEmgShortDur.method_4(new decimal(bits));
            this.nudEmgShortDur.Size     = new Size(120, 23);
            this.nudEmgShortDur.TabIndex = 1;
            this.nudEmgShortDur.Value    = new decimal(new int[4]
            {
                50,
                0,
                0,
                0
            });
            this.nudEmgShortDur.Visible       = false;
            this.cmbTkShort.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbTkShort.FormattingEnabled = true;
            this.cmbTkShort.Location          = new Point(170, 197);
            this.cmbTkShort.Name                  = "cmbTkShort";
            this.cmbTkShort.Size                  = new Size(179, 24);
            this.cmbTkShort.TabIndex              = 13;
            this.cmbTkShort.SelectedIndexChanged += new EventHandler(this.cmbTkShort_SelectedIndexChanged);
            this.nudLongDur.Increment             = new decimal(new int[4]
            {
                250,
                0,
                0,
                0
            });
            this.nudLongDur.method_2(null);
            this.nudLongDur.Location = new Point(367, 68);
            this.nudLongDur.Maximum  = new decimal(new int[4]
            {
                3750,
                0,
                0,
                0
            });
            this.nudLongDur.Minimum = new decimal(new int[4]
            {
                1500,
                0,
                0,
                0
            });
            this.nudLongDur.Name = "nudLongDur";
            this.nudLongDur.method_6(null);

            int[] bits2 = new int[4];
            this.nudLongDur.method_4(new decimal(bits2));
            this.nudLongDur.Size     = new Size(120, 23);
            this.nudLongDur.TabIndex = 3;
            this.nudLongDur.Value    = new decimal(new int[4]
            {
                1500,
                0,
                0,
                0
            });
            this.class4_3.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.class4_3.FormattingEnabled = true;
            this.class4_3.Items.AddRange(new object[3]
            {
                "紧急报警",
                "紧急报警和呼叫",
                "紧急报警和语音"
            });
            this.class4_3.Location              = new Point(362, 167);
            this.class4_3.Name                  = "cmbSk2Long";
            this.class4_3.Size                  = new Size(179, 24);
            this.class4_3.TabIndex              = 11;
            this.class4_3.SelectedIndexChanged += new EventHandler(this.class4_3_SelectedIndexChanged);
            this.lblSK1.Location                = new Point(86, 137);
            this.lblSK1.Name                    = "lblSK1";
            this.lblSK1.Size                    = new Size(76, 24);
            this.lblSK1.TabIndex                = 6;
            this.lblSK1.Text                    = "SK1";
            this.lblSK1.TextAlign               = ContentAlignment.MiddleRight;
            this.class4_0.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.class4_0.FormattingEnabled     = true;
            this.class4_0.Location              = new Point(170, 167);
            this.class4_0.Name                  = "cmbSk2Short";
            this.class4_0.Size                  = new Size(179, 24);
            this.class4_0.TabIndex              = 10;
            this.class4_0.SelectedIndexChanged += new EventHandler(this.class4_0_SelectedIndexChanged);
            this.lblSK2.Location                = new Point(86, 167);
            this.lblSK2.Name                    = "lblSK2";
            this.lblSK2.Size                    = new Size(76, 24);
            this.lblSK2.TabIndex                = 9;
            this.lblSK2.Text                    = "SK2";
            this.lblSK2.TextAlign               = ContentAlignment.MiddleRight;
            this.lblLongPress.Location          = new Point(362, 113);
            this.lblLongPress.Name              = "lblLongPress";
            this.lblLongPress.Size              = new Size(179, 16);
            this.lblLongPress.TabIndex          = 5;
            this.lblLongPress.Text              = "Long Press";
            this.lblLongPress.TextAlign         = ContentAlignment.MiddleCenter;
            this.lblTK.Location                 = new Point(86, 197);
            this.lblTK.Name              = "lblTK";
            this.lblTK.Size              = new Size(76, 24);
            this.lblTK.TabIndex          = 12;
            this.lblTK.Text              = "TK";
            this.lblTK.TextAlign         = ContentAlignment.MiddleRight;
            this.lblShortPress.Location  = new Point(170, 112);
            this.lblShortPress.Name      = "lblShortPress";
            this.lblShortPress.Size      = new Size(179, 16);
            this.lblShortPress.TabIndex  = 4;
            this.lblShortPress.Text      = "Short Press";
            this.lblShortPress.TextAlign = ContentAlignment.MiddleCenter;
            base.AutoScaleDimensions     = new SizeF(7f, 16f);
//			base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(627, 499);
            base.Controls.Add(this.pnlButton);
            this.Font         = new Font("Arial", 10f, FontStyle.Regular);
            base.Name         = "ButtonForm";
            this.Text         = "Buttons";
            base.Load        += new EventHandler(this.ButtonForm_Load);
            base.FormClosing += new FormClosingEventHandler(this.ButtonForm_FormClosing);
            this.pnlButton.ResumeLayout(false);
            ((ISupportInitialize)this.dgvOneTouch).EndInit();
            ((ISupportInitialize)this.nudEmgShortDur).EndInit();
            ((ISupportInitialize)this.nudLongDur).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
コード例 #15
0
        private void method_0()
        {
            this.lblAlias           = new Label();
            this.lblAlarmType       = new Label();
            this.lblAlarmMode       = new Label();
            this.lblRevertCh        = new Label();
            this.lblImpoliteRetries = new Label();
            this.lblPoliteRetries   = new Label();
            this.lblCycles          = new Label();
            this.lblTxCycle         = new Label();
            this.lblRxCycle         = new Label();
            this.cmbAlarmMode       = new ComboBox();
            this.pnlEmergency       = new CustomPanel();
            this.cmbRevertCh        = new CustomCombo();
            this.nudPoliteRetries   = new CustomNumericUpDown();
            this.nudImpoliteRetries = new CustomNumericUpDown();
            this.nudRxCycle         = new CustomNumericUpDown();
            this.nudTxCycle         = new CustomNumericUpDown();
            this.nudCycles          = new CustomNumericUpDown();
            this.cmbAlarmType       = new CustomCombo();
            this.txtName            = new SGTextBox();
            this.pnlEmergency.SuspendLayout();
            ((ISupportInitialize)this.nudPoliteRetries).BeginInit();
            ((ISupportInitialize)this.nudImpoliteRetries).BeginInit();
            ((ISupportInitialize)this.nudRxCycle).BeginInit();
            ((ISupportInitialize)this.nudTxCycle).BeginInit();
            ((ISupportInitialize)this.nudCycles).BeginInit();
            base.SuspendLayout();
            this.lblAlias.Location              = new Point(25, 58);
            this.lblAlias.Name                  = "lblAlias";
            this.lblAlias.Size                  = new Size(131, 24);
            this.lblAlias.TabIndex              = 0;
            this.lblAlias.Text                  = "Name";
            this.lblAlias.TextAlign             = ContentAlignment.MiddleRight;
            this.lblAlarmType.Location          = new Point(25, 88);
            this.lblAlarmType.Name              = "lblAlarmType";
            this.lblAlarmType.Size              = new Size(131, 24);
            this.lblAlarmType.TabIndex          = 2;
            this.lblAlarmType.Text              = "Alarm Type";
            this.lblAlarmType.TextAlign         = ContentAlignment.MiddleRight;
            this.lblAlarmMode.Location          = new Point(25, 118);
            this.lblAlarmMode.Name              = "lblAlarmMode";
            this.lblAlarmMode.Size              = new Size(131, 24);
            this.lblAlarmMode.TabIndex          = 4;
            this.lblAlarmMode.Text              = "Mode";
            this.lblAlarmMode.TextAlign         = ContentAlignment.MiddleRight;
            this.lblRevertCh.Location           = new Point(25, 148);
            this.lblRevertCh.Name               = "lblRevertCh";
            this.lblRevertCh.Size               = new Size(131, 24);
            this.lblRevertCh.TabIndex           = 6;
            this.lblRevertCh.Text               = "Revert Channel";
            this.lblRevertCh.TextAlign          = ContentAlignment.MiddleRight;
            this.lblImpoliteRetries.Location    = new Point(25, 178);
            this.lblImpoliteRetries.Name        = "lblImpoliteRetries";
            this.lblImpoliteRetries.Size        = new Size(131, 24);
            this.lblImpoliteRetries.TabIndex    = 8;
            this.lblImpoliteRetries.Text        = "Impolite Retries";
            this.lblImpoliteRetries.TextAlign   = ContentAlignment.MiddleRight;
            this.lblPoliteRetries.Location      = new Point(25, 208);
            this.lblPoliteRetries.Name          = "lblPoliteRetries";
            this.lblPoliteRetries.Size          = new Size(131, 24);
            this.lblPoliteRetries.TabIndex      = 10;
            this.lblPoliteRetries.Text          = "Polite Retries";
            this.lblPoliteRetries.TextAlign     = ContentAlignment.MiddleRight;
            this.lblCycles.Location             = new Point(25, 238);
            this.lblCycles.Name                 = "lblCycles";
            this.lblCycles.Size                 = new Size(131, 24);
            this.lblCycles.TabIndex             = 12;
            this.lblCycles.Text                 = "Cycles";
            this.lblCycles.TextAlign            = ContentAlignment.MiddleRight;
            this.lblTxCycle.Location            = new Point(25, 268);
            this.lblTxCycle.Name                = "lblTxCycle";
            this.lblTxCycle.Size                = new Size(131, 24);
            this.lblTxCycle.TabIndex            = 14;
            this.lblTxCycle.Text                = "Tx Cycle Time [s]";
            this.lblTxCycle.TextAlign           = ContentAlignment.MiddleRight;
            this.lblRxCycle.Location            = new Point(25, 298);
            this.lblRxCycle.Name                = "lblRxCycle";
            this.lblRxCycle.Size                = new Size(131, 24);
            this.lblRxCycle.TabIndex            = 16;
            this.lblRxCycle.Text                = "Rx Cycle Time [s]";
            this.lblRxCycle.TextAlign           = ContentAlignment.MiddleRight;
            this.cmbAlarmMode.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbAlarmMode.FormattingEnabled = true;
            this.cmbAlarmMode.Items.AddRange(new object[3]
            {
                "紧急报警",
                "紧急报警和呼叫",
                "紧急报警和语音"
            });
            this.cmbAlarmMode.Location              = new Point(167, 118);
            this.cmbAlarmMode.Name                  = "cmbAlarmMode";
            this.cmbAlarmMode.Size                  = new Size(120, 24);
            this.cmbAlarmMode.TabIndex              = 5;
            this.cmbAlarmMode.SelectedIndexChanged += this.cmbAlarmMode_SelectedIndexChanged;
            this.pnlEmergency.AutoScroll            = true;
            this.pnlEmergency.AutoSize              = true;
            this.pnlEmergency.Controls.Add(this.cmbRevertCh);
            this.pnlEmergency.Controls.Add(this.nudPoliteRetries);
            this.pnlEmergency.Controls.Add(this.lblAlias);
            this.pnlEmergency.Controls.Add(this.nudImpoliteRetries);
            this.pnlEmergency.Controls.Add(this.lblAlarmType);
            this.pnlEmergency.Controls.Add(this.nudRxCycle);
            this.pnlEmergency.Controls.Add(this.lblAlarmMode);
            this.pnlEmergency.Controls.Add(this.nudTxCycle);
            this.pnlEmergency.Controls.Add(this.lblRevertCh);
            this.pnlEmergency.Controls.Add(this.nudCycles);
            this.pnlEmergency.Controls.Add(this.lblImpoliteRetries);
            this.pnlEmergency.Controls.Add(this.lblPoliteRetries);
            this.pnlEmergency.Controls.Add(this.cmbAlarmMode);
            this.pnlEmergency.Controls.Add(this.lblCycles);
            this.pnlEmergency.Controls.Add(this.cmbAlarmType);
            this.pnlEmergency.Controls.Add(this.lblTxCycle);
            this.pnlEmergency.Controls.Add(this.txtName);
            this.pnlEmergency.Controls.Add(this.lblRxCycle);
            this.pnlEmergency.Dock             = DockStyle.Fill;
            this.pnlEmergency.Location         = new Point(0, 0);
            this.pnlEmergency.Name             = "pnlEmergency";
            this.pnlEmergency.Size             = new Size(327, 376);
            this.pnlEmergency.TabIndex         = 0;
            this.cmbRevertCh.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbRevertCh.FormattingEnabled = true;
            this.cmbRevertCh.Items.AddRange(new object[6]
            {
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
            });
            this.cmbRevertCh.Location = new Point(167, 148);
            this.cmbRevertCh.Name     = "cmbRevertCh";
            this.cmbRevertCh.Size     = new Size(120, 24);
            this.cmbRevertCh.TabIndex = 7;
            this.nudPoliteRetries.method_2(null);
            this.nudPoliteRetries.Location = new Point(167, 208);
            this.nudPoliteRetries.Maximum  = new decimal(new int[4]
            {
                15,
                0,
                0,
                0
            });
            this.nudPoliteRetries.Name = "nudPoliteRetries";
            this.nudPoliteRetries.method_6(null);
            CustomNumericUpDown @class = this.nudPoliteRetries;

            int[] bits = new int[4];
            @class.method_4(new decimal(bits));
            this.nudPoliteRetries.Size     = new Size(120, 23);
            this.nudPoliteRetries.TabIndex = 11;
            this.nudImpoliteRetries.method_2(null);
            this.nudImpoliteRetries.Location = new Point(167, 178);
            this.nudImpoliteRetries.Maximum  = new decimal(new int[4]
            {
                15,
                0,
                0,
                0
            });
            this.nudImpoliteRetries.Minimum = new decimal(new int[4]
            {
                1,
                0,
                0,
                0
            });
            this.nudImpoliteRetries.Name = "nudImpoliteRetries";
            this.nudImpoliteRetries.method_6(null);
            CustomNumericUpDown class2 = this.nudImpoliteRetries;

            int[] bits2 = new int[4];
            class2.method_4(new decimal(bits2));
            this.nudImpoliteRetries.Size     = new Size(120, 23);
            this.nudImpoliteRetries.TabIndex = 9;
            this.nudImpoliteRetries.Value    = new decimal(new int[4]
            {
                1,
                0,
                0,
                0
            });
            this.nudRxCycle.Increment = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.nudRxCycle.method_2(null);
            this.nudRxCycle.Location = new Point(167, 298);
            this.nudRxCycle.Maximum  = new decimal(new int[4]
            {
                120,
                0,
                0,
                0
            });
            this.nudRxCycle.Minimum = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.nudRxCycle.Name = "nudRxCycle";
            this.nudRxCycle.method_6(null);
            CustomNumericUpDown class3 = this.nudRxCycle;

            int[] bits3 = new int[4];
            class3.method_4(new decimal(bits3));
            this.nudRxCycle.Size     = new Size(120, 23);
            this.nudRxCycle.TabIndex = 17;
            this.nudRxCycle.Value    = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.nudRxCycle.ValueChanged += this.nudRxCycle_ValueChanged;
            this.nudTxCycle.Increment     = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.nudTxCycle.method_2(null);
            this.nudTxCycle.Location = new Point(167, 268);
            this.nudTxCycle.Maximum  = new decimal(new int[4]
            {
                120,
                0,
                0,
                0
            });
            this.nudTxCycle.Minimum = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.nudTxCycle.Name = "nudTxCycle";
            this.nudTxCycle.method_6(null);
            CustomNumericUpDown class4 = this.nudTxCycle;

            int[] bits4 = new int[4];
            class4.method_4(new decimal(bits4));
            this.nudTxCycle.Size     = new Size(120, 23);
            this.nudTxCycle.TabIndex = 15;
            this.nudTxCycle.Value    = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.nudTxCycle.ValueChanged += this.nudTxCycle_ValueChanged;
            this.nudCycles.method_2(null);
            this.nudCycles.Location = new Point(167, 238);
            this.nudCycles.Maximum  = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.nudCycles.Minimum = new decimal(new int[4]
            {
                1,
                0,
                0,
                0
            });
            this.nudCycles.Name = "nudCycles";
            this.nudCycles.method_6(null);
            CustomNumericUpDown class5 = this.nudCycles;

            int[] bits5 = new int[4];
            class5.method_4(new decimal(bits5));
            this.nudCycles.Size     = new Size(120, 23);
            this.nudCycles.TabIndex = 13;
            this.nudCycles.Value    = new decimal(new int[4]
            {
                10,
                0,
                0,
                0
            });
            this.cmbAlarmType.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbAlarmType.FormattingEnabled = true;
            this.cmbAlarmType.Items.AddRange(new object[4]
            {
                "禁用",
                "常规",
                "静默",
                "静默带语音"
            });
            this.cmbAlarmType.Location              = new Point(167, 88);
            this.cmbAlarmType.Name                  = "cmbAlarmType";
            this.cmbAlarmType.Size                  = new Size(120, 24);
            this.cmbAlarmType.TabIndex              = 3;
            this.cmbAlarmType.SelectedIndexChanged += this.cmbAlarmType_SelectedIndexChanged;
            this.txtName.InputString                = null;
            this.txtName.Location      = new Point(167, 58);
            this.txtName.MaxByteLength = 0;
            this.txtName.MaxLength     = 8;
            this.txtName.Name          = "txtName";
            this.txtName.Size          = new Size(120, 23);
            this.txtName.TabIndex      = 1;
            this.txtName.Leave        += this.txtName_Leave;
            base.AutoScaleDimensions   = new SizeF(7f, 16f);
            base.AutoScaleMode         = AutoScaleMode.Font;
            base.ClientSize            = new Size(327, 376);
            base.Controls.Add(this.pnlEmergency);
            this.Font         = new Font("Arial", 10f, FontStyle.Regular, GraphicsUnit.Point, 0);
            base.Name         = "EmergencyForm";
            this.Text         = "Emergency System";
            base.Load        += this.EmergencyForm_Load;
            base.FormClosing += this.EmergencyForm_FormClosing;
            this.pnlEmergency.ResumeLayout(false);
            this.pnlEmergency.PerformLayout();
            ((ISupportInitialize)this.nudPoliteRetries).EndInit();
            ((ISupportInitialize)this.nudImpoliteRetries).EndInit();
            ((ISupportInitialize)this.nudRxCycle).EndInit();
            ((ISupportInitialize)this.nudTxCycle).EndInit();
            ((ISupportInitialize)this.nudCycles).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
コード例 #16
0
        private void InitializeComponent()
        {
            this.chkCallRxTone = new CheckBox();
            this.lblName       = new Label();
            this.lblCallId     = new Label();
            this.lblCallType   = new Label();
            this.pnlContact    = new CustomPanel();
            this.txtCallId     = new SGTextBox();
            this.cmbRingStyle  = new CustomCombo();
            this.cmbCallType   = new CustomCombo();
            this.lblRingStyle  = new Label();
            this.txtName       = new SGTextBox();
            this.pnlContact.SuspendLayout();
            base.SuspendLayout();
            this.chkCallRxTone.AutoSize = true;
            this.chkCallRxTone.Location = new Point(158, 173);
            this.chkCallRxTone.Name     = "chkCallRxTone";
            this.chkCallRxTone.Size     = new Size(141, 20);
            this.chkCallRxTone.TabIndex = 6;
            this.chkCallRxTone.Text     = "Call Receive Tone";
            this.chkCallRxTone.UseVisualStyleBackColor = true;
            this.chkCallRxTone.CheckedChanged         += this.chkCallRxTone_CheckedChanged;
            this.lblName.Location      = new Point(60, 50);
            this.lblName.Name          = "lblName";
            this.lblName.Size          = new Size(87, 24);
            this.lblName.TabIndex      = 0;
            this.lblName.Text          = "Name";
            this.lblName.TextAlign     = ContentAlignment.MiddleRight;
            this.lblCallId.Location    = new Point(60, 80);
            this.lblCallId.Name        = "lblCallId";
            this.lblCallId.Size        = new Size(87, 24);
            this.lblCallId.TabIndex    = 2;
            this.lblCallId.Text        = "Call ID";
            this.lblCallId.TextAlign   = ContentAlignment.MiddleRight;
            this.lblCallType.Enabled   = false;
            this.lblCallType.Location  = new Point(60, 110);
            this.lblCallType.Name      = "lblCallType";
            this.lblCallType.Size      = new Size(87, 24);
            this.lblCallType.TabIndex  = 4;
            this.lblCallType.Text      = "Call Type";
            this.lblCallType.TextAlign = ContentAlignment.MiddleRight;
            this.pnlContact.AutoScroll = true;
            this.pnlContact.AutoSize   = true;
            this.pnlContact.Controls.Add(this.txtCallId);
            this.pnlContact.Controls.Add(this.chkCallRxTone);
            this.pnlContact.Controls.Add(this.cmbRingStyle);
            this.pnlContact.Controls.Add(this.cmbCallType);
            this.pnlContact.Controls.Add(this.lblRingStyle);
            this.pnlContact.Controls.Add(this.txtName);
            this.pnlContact.Controls.Add(this.lblCallType);
            this.pnlContact.Controls.Add(this.lblName);
            this.pnlContact.Controls.Add(this.lblCallId);
            this.pnlContact.Dock                    = DockStyle.Fill;
            this.pnlContact.Location                = new Point(0, 0);
            this.pnlContact.Name                    = "pnlContact";
            this.pnlContact.Size                    = new Size(355, 228);
            this.pnlContact.TabIndex                = 7;
            this.txtCallId.InputString              = null;
            this.txtCallId.Location                 = new Point(158, 80);
            this.txtCallId.MaxByteLength            = 0;
            this.txtCallId.Name                     = "txtCallId";
            this.txtCallId.Size                     = new Size(120, 23);
            this.txtCallId.TabIndex                 = 3;
            this.txtCallId.Leave                   += this.txtCallId_Leave;
            this.txtCallId.Enter                   += this.txtCallId_Enter;
            this.txtCallId.Validating              += this.txtCallId_Validating;
            this.cmbRingStyle.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cmbRingStyle.FormattingEnabled     = true;
            this.cmbRingStyle.Location              = new Point(158, 140);
            this.cmbRingStyle.Name                  = "cmbRingStyle";
            this.cmbRingStyle.Size                  = new Size(120, 24);
            this.cmbRingStyle.TabIndex              = 5;
            this.cmbRingStyle.SelectedIndexChanged += this.cmbRingStyle_SelectedIndexChanged;
            this.cmbCallType.DropDownStyle          = ComboBoxStyle.DropDownList;
            this.cmbCallType.Enabled                = false;
            this.cmbCallType.FormattingEnabled      = true;
            this.cmbCallType.Location               = new Point(158, 110);
            this.cmbCallType.Name                   = "cmbCallType";
            this.cmbCallType.Size                   = new Size(120, 24);
            this.cmbCallType.TabIndex               = 5;
            this.cmbCallType.SelectedIndexChanged  += this.cmbCallType_SelectedIndexChanged;
            this.lblRingStyle.Location              = new Point(60, 140);
            this.lblRingStyle.Name                  = "lblRingStyle";
            this.lblRingStyle.Size                  = new Size(87, 24);
            this.lblRingStyle.TabIndex              = 4;
            this.lblRingStyle.Text                  = "Ring Style";
            this.lblRingStyle.TextAlign             = ContentAlignment.MiddleRight;
            this.txtName.InputString                = null;
            this.txtName.Location                   = new Point(158, 50);
            this.txtName.MaxByteLength              = 0;
            this.txtName.Name        = "txtName";
            this.txtName.Size        = new Size(120, 23);
            this.txtName.TabIndex    = 1;
            this.txtName.Leave      += this.txtName_Leave;
            base.AutoScaleDimensions = new SizeF(7f, 16f);
//			base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(355, 228);
            base.Controls.Add(this.pnlContact);
            this.Font         = new Font("Arial", 10f, FontStyle.Regular);
            base.Name         = "ContactForm";
            this.Text         = "Digital Contact";
            base.Load        += this.ContactForm_Load;
            base.FormClosing += this.ContactForm_FormClosing;
            this.pnlContact.ResumeLayout(false);
            this.pnlContact.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
コード例 #17
0
        private void InitializeComponent()
        {
            this.pnlChannel                 = new Panel();
            this.btnImport                  = new Button();
            this.btnExport                  = new Button();
            this.btnDeleteSelect            = new Button();
            this.txtTxFreq                  = new SGTextBox();
            this.txtRxFreq                  = new SGTextBox();
            this.txtName                    = new SGTextBox();
            this.cmbPower                   = new ComboBox();
            this.cmbChMode                  = new ComboBox();
            this.cmbAddChMode               = new CustomCombo();
            this.btnClear                   = new Button();
            this.btnDelete                  = new Button();
            this.btnAdd                     = new Button();
            this.dgvChannels                = new DataGridView();
            this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn();
            this.pnlChannel.SuspendLayout();
            ((ISupportInitialize)this.dgvChannels).BeginInit();
            base.SuspendLayout();
            this.pnlChannel.AutoScroll = true;
            this.pnlChannel.AutoSize   = true;
            this.pnlChannel.Controls.Add(this.btnImport);
            this.pnlChannel.Controls.Add(this.btnExport);
            this.pnlChannel.Controls.Add(this.btnDeleteSelect);
            this.pnlChannel.Controls.Add(this.txtTxFreq);
            this.pnlChannel.Controls.Add(this.txtRxFreq);
            this.pnlChannel.Controls.Add(this.txtName);
            this.pnlChannel.Controls.Add(this.cmbPower);
            this.pnlChannel.Controls.Add(this.cmbChMode);
            this.pnlChannel.Controls.Add(this.cmbAddChMode);
            this.pnlChannel.Controls.Add(this.btnClear);
            this.pnlChannel.Controls.Add(this.btnDelete);
            this.pnlChannel.Controls.Add(this.btnAdd);
            this.pnlChannel.Controls.Add(this.dgvChannels);
            this.pnlChannel.Dock     = DockStyle.Fill;
            this.pnlChannel.Location = new Point(0, 0);
            this.pnlChannel.Name     = "pnlChannel";
            this.pnlChannel.Size     = new Size(1200, 493);
            this.pnlChannel.TabIndex = 0;
            this.btnImport.Location  = new Point(660, 28);
            this.btnImport.Name      = "btnImport";
            this.btnImport.Size      = new Size(75, 23);
            this.btnImport.TabIndex  = 13;
            this.btnImport.Text      = "Import";
            this.btnImport.UseVisualStyleBackColor = true;
            this.btnImport.Click   += this.btnImport_Click;
            this.btnExport.Location = new Point(566, 28);
            this.btnExport.Name     = "btnExport";
            this.btnExport.Size     = new Size(75, 23);
            this.btnExport.TabIndex = 14;
            this.btnExport.Text     = "Export";
            this.btnExport.UseVisualStyleBackColor = true;
            this.btnExport.Click         += this.btnExport_Click;
            this.btnDeleteSelect.Location = new Point(444, 28);
            this.btnDeleteSelect.Name     = "btnDeleteSelect";
            this.btnDeleteSelect.Size     = new Size(103, 23);
            this.btnDeleteSelect.TabIndex = 12;
            this.btnDeleteSelect.Text     = "Delete Select";
            this.btnDeleteSelect.UseVisualStyleBackColor = true;
            this.btnDeleteSelect.Visible           = false;
            this.btnDeleteSelect.Click            += this.btnDeleteSelect_Click;
            this.txtTxFreq.InputString             = null;
            this.txtTxFreq.Location                = new Point(312, 3);
            this.txtTxFreq.MaxByteLength           = 0;
            this.txtTxFreq.Name                    = "txtTxFreq";
            this.txtTxFreq.Size                    = new Size(61, 21);
            this.txtTxFreq.TabIndex                = 6;
            this.txtTxFreq.Visible                 = false;
            this.txtTxFreq.Leave                  += this.txtTxFreq_Leave;
            this.txtRxFreq.InputString             = null;
            this.txtRxFreq.Location                = new Point(240, 3);
            this.txtRxFreq.MaxByteLength           = 0;
            this.txtRxFreq.Name                    = "txtRxFreq";
            this.txtRxFreq.Size                    = new Size(61, 21);
            this.txtRxFreq.TabIndex                = 6;
            this.txtRxFreq.Visible                 = false;
            this.txtRxFreq.Leave                  += this.CaeqgYciuW;
            this.txtName.InputString               = null;
            this.txtName.Location                  = new Point(163, 2);
            this.txtName.MaxByteLength             = 0;
            this.txtName.Name                      = "txtName";
            this.txtName.Size                      = new Size(61, 21);
            this.txtName.TabIndex                  = 5;
            this.txtName.Visible                   = false;
            this.txtName.Leave                    += this.txtName_Leave;
            this.cmbPower.DropDownStyle            = ComboBoxStyle.DropDownList;
            this.cmbPower.FlatStyle                = FlatStyle.Flat;
            this.cmbPower.FormattingEnabled        = true;
            this.cmbPower.Location                 = new Point(466, 2);
            this.cmbPower.Name                     = "cmbPower";
            this.cmbPower.Size                     = new Size(61, 20);
            this.cmbPower.TabIndex                 = 8;
            this.cmbPower.Visible                  = false;
            this.cmbPower.Leave                   += this.cmbPower_Leave;
            this.cmbChMode.DropDownStyle           = ComboBoxStyle.DropDownList;
            this.cmbChMode.FlatStyle               = FlatStyle.Flat;
            this.cmbChMode.FormattingEnabled       = true;
            this.cmbChMode.Location                = new Point(384, 2);
            this.cmbChMode.Name                    = "cmbChMode";
            this.cmbChMode.Size                    = new Size(61, 20);
            this.cmbChMode.TabIndex                = 7;
            this.cmbChMode.Visible                 = false;
            this.cmbChMode.Leave                  += this.cmbChMode_Leave;
            this.cmbAddChMode.DropDownStyle        = ComboBoxStyle.DropDownList;
            this.cmbAddChMode.FormattingEnabled    = true;
            this.cmbAddChMode.Location             = new Point(33, 30);
            this.cmbAddChMode.Name                 = "cmbAddChMode";
            this.cmbAddChMode.Size                 = new Size(109, 20);
            this.cmbAddChMode.TabIndex             = 0;
            this.btnClear.Location                 = new Point(350, 28);
            this.btnClear.Name                     = "btnClear";
            this.btnClear.Size                     = new Size(75, 23);
            this.btnClear.TabIndex                 = 3;
            this.btnClear.Text                     = "Clear";
            this.btnClear.UseVisualStyleBackColor  = true;
            this.btnClear.Click                   += this.btnClear_Click;
            this.btnDelete.Location                = new Point(256, 28);
            this.btnDelete.Name                    = "btnDelete";
            this.btnDelete.Size                    = new Size(75, 23);
            this.btnDelete.TabIndex                = 2;
            this.btnDelete.Text                    = "Delete";
            this.btnDelete.UseVisualStyleBackColor = true;
            this.btnDelete.Click                  += this.btnDelete_Click;
            this.btnAdd.Location                   = new Point(162, 28);
            this.btnAdd.Name     = "btnAdd";
            this.btnAdd.Size     = new Size(75, 23);
            this.btnAdd.TabIndex = 1;
            this.btnAdd.Text     = "Add";
            this.btnAdd.UseVisualStyleBackColor = true;
            this.btnAdd.Click += this.btnAdd_Click;
            this.dgvChannels.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvChannels.Location                   = new Point(22, 62);
            this.dgvChannels.Name                       = "dgvChannels";
            this.dgvChannels.ReadOnly                   = true;
            this.dgvChannels.RowHeadersWidth            = 50;
            this.dgvChannels.RowTemplate.Height         = 23;
            this.dgvChannels.Size                       = new Size(1110, 419);
            this.dgvChannels.TabIndex                   = 9;
            this.dgvChannels.RowPostPaint              += this.NligzloMrR;
            this.dgvChannels.RowHeaderMouseDoubleClick += this.dgvChannels_RowHeaderMouseDoubleClick;
            this.dgvChannels.SelectionChanged          += this.dgvChannels_SelectionChanged;
            this.dataGridViewTextBoxColumn1.HeaderText  = "Column1";
            this.dataGridViewTextBoxColumn1.Name        = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly    = true;
            this.dataGridViewTextBoxColumn2.HeaderText  = "Column2";
            this.dataGridViewTextBoxColumn2.Name        = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.ReadOnly    = true;
            this.dataGridViewTextBoxColumn3.HeaderText  = "Column3";
            this.dataGridViewTextBoxColumn3.Name        = "dataGridViewTextBoxColumn3";
            this.dataGridViewTextBoxColumn3.ReadOnly    = true;
            this.dataGridViewTextBoxColumn4.HeaderText  = "Column4";
            this.dataGridViewTextBoxColumn4.Name        = "dataGridViewTextBoxColumn4";
            this.dataGridViewTextBoxColumn4.ReadOnly    = true;
            this.dataGridViewTextBoxColumn5.HeaderText  = "Column5";
            this.dataGridViewTextBoxColumn5.Name        = "dataGridViewTextBoxColumn5";
            this.dataGridViewTextBoxColumn5.ReadOnly    = true;
            base.AutoScaleDimensions                    = new SizeF(6f, 12f);
//			base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(1200, 493);
            base.Controls.Add(this.pnlChannel);
            this.Font  = new Font("Arial", 10f, FontStyle.Regular);
            base.Name  = "ChannelsForm";
            this.Text  = "Channels";
            base.Load += this.ChannelsForm_Load;
            this.pnlChannel.ResumeLayout(false);
            this.pnlChannel.PerformLayout();
            ((ISupportInitialize)this.dgvChannels).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }