示例#1
0
        public static void LoadList(string fileName, string txtMsg, ComboBox.ObjectCollection List, string[] DefaultList)
        {
            if (File.Exists(Application.StartupPath + fileName))
            {
                List.AddRange(File.ReadAllLines(Application.StartupPath + fileName));
            }
            else
            {
                if (MessageBox.Show("Файл с перечнем " + txtMsg + " не был найден. Возможно, он был удалён, перемещён или переименован." +
                                    Environment.NewLine + "Хотите загрузить список с сервера?", "Ошибка", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    try
                    {
                        switch (fileName)
                        {
                        case @"\Regions.dat": Lists.ResetList("regions", "RegionID", "RegionName", @"\Regions.dat"); break;

                        case @"\Streets.dat": Lists.ResetList("streets", "StreetID", "StreetName", @"\Streets.dat"); break;

                        case @"\Implementers.dat": Lists.ResetList("workers", "WorkerID", "WorkerName", @"\Implementers.dat"); break;
                        }
                        LoadList(fileName, txtMsg, List, DefaultList);
                    }
                    catch (Exception ex)
                    {
                        Message.ShowError(string.Format("При загрузке возникла ошибка. Будет использован стандартный список.\nДополнительная информация:\n{0} ", ex.Message), "Ошибка");
                        List.AddRange(DefaultList);
                    }
                }
                else
                {
                    List.AddRange(DefaultList);
                }
            }
        }
 public BaoDanh(Client client)
 {
     InitializeComponent();
     player = client.player;
     if (client.IsChecked)
     {
         checkBox1.Checked = player.isDBCTC;
         checkBox2.Checked = !checkBox1.Checked;
         string[] array = new string[4]
         {
             "Tiểu Phương",
             "Mộ Binh Quan phe Tống",
             "Tiểu Ngọc",
             "Mộ Binh Quan phe Liêu"
         };
         ComboBox.ObjectCollection items = comboBox1.Items;
         object[] items2 = array;
         items.AddRange(items2);
         comboBox1.SelectedIndex = 0;
         string[] array2 = new string[3]
         {
             "Thôn Trang",
             "Tài Nguyên",
             "Pháo Đài"
         };
         ComboBox.ObjectCollection items3 = comboBox2.Items;
         items2 = array2;
         items3.AddRange(items2);
         comboBox2.SelectedIndex = 0;
     }
 }
 private void PrepareProjsUI()
 {
     cmbx_CurrentProjectName.Items.Clear();
     cmbx_DeleteProject.Items.Clear();
     cmbx_NewProjectBaseOnWhichProject.Items.Clear();
     string[] array = null;
     if (!Directory.Exists("Projs"))
     {
         Directory.CreateDirectory("Projs");
     }
     array = Directory.GetDirectories("Projs");
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = Path.GetFileNameWithoutExtension(array[i]);
     }
     ComboBox.ObjectCollection items = cmbx_CurrentProjectName.Items;
     object[] items2 = array;
     items.AddRange(items2);
     cmbx_CurrentProjectName.Text = Path.GetFileNameWithoutExtension(base.CompactDB.FetchValue("Current_Project", true, "0"));
     ComboBox.ObjectCollection items3 = cmbx_DeleteProject.Items;
     items2 = array;
     items3.AddRange(items2);
     ComboBox.ObjectCollection items4 = cmbx_NewProjectBaseOnWhichProject.Items;
     items2 = array;
     items4.AddRange(items2);
     cmbx_NewProjectBaseOnWhichProject.Text = cmbx_CurrentProjectName.Text;
 }
示例#4
0
 public SettingsPanel(XDRPlugin plugin)
 {
     this._plugin    = plugin;
     this.comIndex   = 0;
     this.BaudIndex  = 0;
     this.XdrEnabled = false;
     this.InitializeComponent();
     this.XdrEnabled = Utils.GetBooleanSetting("enableXdr", false);
     this.enableXdrCheckBox.Enabled = true;
     this.comPortsBox.Enabled       = this.XdrEnabled;
     this.BaudrateBox.Enabled       = this.XdrEnabled;
     this.comPortsBox.Items.Add("None");
     this.BaudrateBox.Items.Add("None");
     this.myPort = SerialPort.GetPortNames();
     this.myBaud = new string[] { "300", "600", "1200", "2400", "4800", "9600", "19200", "38400", "57600", "115200", "230400", "460800", "921600" }; //Baudrate is here
     ComboBox.ObjectCollection items  = this.comPortsBox.Items;
     ComboBox.ObjectCollection Bitems = this.BaudrateBox.Items;
     object[] items2  = this.myPort;
     object[] Bitems2 = this.myBaud;
     items.AddRange(items2);
     Bitems.AddRange(Bitems2);
     this.comIndex  = Utils.GetIntSetting("comIndex", 0);
     this.BaudIndex = Utils.GetIntSetting("BaudIndex", 6);
     if (this.comIndex > this.myPort.Length)
     {
         this.comIndex = 0;
     }
     if (this.BaudIndex > this.myBaud.Length)
     {
         this.BaudIndex = 6;
     }
 }
示例#5
0
 public UseGmItem(Client client)
 {
     InitializeComponent();
     player = client.player;
     Module = client.Module;
     if (client.IsChecked)
     {
         ComboBox.ObjectCollection items = comboBox2.Items;
         object[] nameDong = NameDong;
         items.AddRange(nameDong);
         ComboBox.ObjectCollection items2 = comboBox3.Items;
         nameDong = NameDong;
         items2.AddRange(nameDong);
         ComboBox.ObjectCollection items3 = comboBox4.Items;
         nameDong = NameDong;
         items3.AddRange(nameDong);
         ComboBox.ObjectCollection items4 = comboBox5.Items;
         nameDong = NameDong;
         items4.AddRange(nameDong);
         ComboBox.ObjectCollection items5 = comboBox6.Items;
         nameDong = NameDong;
         items5.AddRange(nameDong);
         ComboBox.ObjectCollection items6 = comboBox7.Items;
         nameDong = NameDong;
         items6.AddRange(nameDong);
         comboBox2.SelectedIndex = 0;
         comboBox3.SelectedIndex = 0;
         comboBox4.SelectedIndex = 0;
         comboBox5.SelectedIndex = 0;
         comboBox6.SelectedIndex = 0;
         comboBox7.SelectedIndex = 0;
     }
 }
示例#6
0
 public static void FromString(this ComboBox.ObjectCollection coll, string values)
 {
     if (!string.IsNullOrWhiteSpace(values))
     {
         string[] items = values.Split(new[] { _delimiter }, StringSplitOptions.RemoveEmptyEntries);
         coll.AddRange(items);
     }
 }
示例#7
0
 public MuseumCollections()
 {
     InitializeComponent();
     ComboBox.ObjectCollection objectCollection = new ComboBox.ObjectCollection(comboBox1);
     objectCollection.Add("Click to Select");
     objectCollection.AddRange(setNames.ToArray());
     myCollection.AddRange(setNames.ToArray());
     comboBox1.AutoCompleteCustomSource = myCollection;
     comboBox1.DataSource    = objectCollection;
     comboBox1.DisplayMember = "Click to Select";
 }
示例#8
0
文件: Root.cs 项目: dwiki08/grimli
 private void cbCells_Click(object sender, EventArgs e)
 {
     if (!Player.IsLoggedIn)
     {
         return;
     }
     this.cbCells.Items.Clear();
     ComboBox.ObjectCollection items = this.cbCells.Items;
     object[] cells = World.Cells;
     items.AddRange(cells);
 }
示例#9
0
 private void CheckBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (isLuyenLo)
     {
         checkBox1.Checked = true;
         checkBox2.Checked = false;
         isTayTam          = true;
         isLuyenLo         = false;
         comboBox2.Items.Clear();
         comboBox3.Items.Clear();
         comboBox4.Items.Clear();
         string[] array = new string[6]
         {
             "Không Sử Dụng",
             "Sức Mạnh",
             "Nội Lực",
             "Gân Côt",
             "Thân Pháp",
             "Linh Hoạt"
         };
         ComboBox.ObjectCollection items = comboBox2.Items;
         object[] items2 = array;
         items.AddRange(items2);
         string[] array2 = new string[7]
         {
             "Không Sử Dụng",
             "Sức Mạnh",
             "Nội Lực",
             "Gân Côt",
             "Thân Pháp",
             "Linh Hoạt",
             "Sinh lực tối đa"
         };
         ComboBox.ObjectCollection items3 = comboBox3.Items;
         items2 = array2;
         items3.AddRange(items2);
         string[] array3 = new string[6]
         {
             "Không Sử Dụng",
             "Nội kích",
             "Tăng Ngoại Công",
             "Tăng Nội Ngoại Công",
             "Điểm bạo kích",
             "Sinh lực tối đa"
         };
         ComboBox.ObjectCollection items4 = comboBox4.Items;
         items2 = array3;
         items4.AddRange(items2);
         comboBox2.SelectedIndex = 0;
         comboBox3.SelectedIndex = 0;
         comboBox4.SelectedIndex = 0;
     }
 }
示例#10
0
        PopulateWithTableColumnNames
        (
            Microsoft.Office.Interop.Excel.ListObject table
        )
        {
            Debug.Assert(table != null);
            AssertValid();

            ComboBox.ObjectCollection oItems = this.Items;
            oItems.Clear();
            oItems.AddRange(GetTableColumnNamesInternal(table));
        }
 public ViewsForZonesForm(IList <View3D> views, View3D defalutView)
 {
     InitializeComponent();
     m_Views = views;
     string[] array = (from v in views
                       select v.get_Name()).ToArray();
     ComboBox.ObjectCollection items = comboBoxViews.Items;
     object[] items2 = array;
     items.AddRange(items2);
     comboBoxViews.SelectedItem = (((defalutView != null) ? defalutView.get_Name() : null) ?? array.FirstOrDefault());
     comboBoxViews.Focus();
 }
示例#12
0
 private void CheckBox2_CheckedChanged(object sender, EventArgs e)
 {
     if (isTayTam)
     {
         checkBox1.Checked = false;
         checkBox2.Checked = true;
         isTayTam          = false;
         isLuyenLo         = true;
         comboBox2.Items.Clear();
         comboBox3.Items.Clear();
         comboBox4.Items.Clear();
         string[] array = new string[6]
         {
             "Không Sử Dụng",
             "Phòng thủ bạo kích",
             "Giảm thương bạo kích",
             "Tăng nội phòng",
             "Tăng ngoại phòng",
             "Sinh lực tối đa"
         };
         ComboBox.ObjectCollection items = comboBox2.Items;
         object[] items2 = array;
         items.AddRange(items2);
         string[] array2 = new string[6]
         {
             "Không Sử Dụng",
             "Sức Mạnh",
             "Nội Lực",
             "Gân Côt",
             "Thân Pháp",
             "Linh Hoạt"
         };
         ComboBox.ObjectCollection items3 = comboBox3.Items;
         items2 = array2;
         items3.AddRange(items2);
         string[] array3 = new string[4]
         {
             "Không Sử Dụng",
             "Tốc độ di chuyển",
             "Tốc độ xuất chiêu",
             "Xác xuất giảm nửa"
         };
         ComboBox.ObjectCollection items4 = comboBox4.Items;
         items2 = array3;
         items4.AddRange(items2);
         comboBox2.SelectedIndex = 0;
         comboBox3.SelectedIndex = 0;
         comboBox4.SelectedIndex = 0;
     }
 }
示例#13
0
 public Form1()
 {
     InitializeComponent();
     this.Dispatcher = Dispatcher.CurrentDispatcher;
     ComboBox.ObjectCollection items = this.cbEnv.Items;
     object[] items2 = (from e in this.connectionConfiguration.ConnectionConfigurations
                        select e.Name).ToArray();
     items.AddRange(items2);
     this.cbEnv.SelectedIndex = 0;
     Form1.myTimer.Tick      += this.button1_Click;
     Form1.myTimer.Interval   = 20000;
     Form1.myTimer.Enabled    = true;
     //txtAppCode.Text = "CAR.25112020.00000593";
     if (System.Diagnostics.Debugger.IsAttached)
     {
         Form1.myTimer.Enabled = false;
     }
 }
示例#14
0
        public static bool TryAddRange(this ComboBox.ObjectCollection comboBoxObjects, IEnumerable <object> objects)
        {
            if (comboBoxObjects == null || objects.IsNullOrEmpty())
            {
                return(false);
            }

            try
            {
                comboBoxObjects.AddRange(objects.ToArray());
            }
            catch
            {
                return(false);
            }

            return(true);
        }
示例#15
0
 protected override void prepareCtrls()
 {
     base.prepareCtrls();
     InitializeComponent();
     ComboBox.ObjectCollection items = cmbx_BorderNum.Items;
     object[] items2 = new string[4]
     {
         "0",
         "1",
         "2",
         "3"
     };
     items.AddRange(items2);
     cmbx_BorderNum.SetIndexByString(App.nCurrentBorder.ToString());
     lbl_ProjectName.Text   = "当前项目:" + App.GetShortProjectName();
     CurrentMakeupTableName = string.Format("X{0}_Makeup", App.GetShortProjectName());
     base.StartPosition     = FormStartPosition.CenterScreen;
     base.MaximizeBox       = false;
     base.FormBorderStyle   = FormBorderStyle.FixedSingle;
     Text = "补偿值";
     AddBindings();
 }
示例#16
0
        public FormSignalGsm(TElement trElem, SignalGSM signaler)
        {
            InitializeComponent();

            this.TrElement = trElem;
            this.Signaler  = signaler;
            this.UpdateGridSignals();

            numericUpDownPrice.InitWheelDecimal();
            numericUpDownPrice.InitSecurity(this.TrElement.Security);

            numericUpDownPrice.Value = this.TrElement.Security.LastPrice.NotIsNull() ?
                                       this.TrElement.Security.LastPrice : 0;

            var list = new List <string>();

            list.Add(">=");
            list.Add(">");
            list.Add("<=");
            list.Add("<");
            list.Add("==");
            ComboBox.ObjectCollection items = new ComboBox.ObjectCollection(this.comboBoxCond);
            items.AddRange(list.ToArray());
            this.comboBoxCond.DataSource = items;
            if (list.Count > 0)
            {
                this.comboBoxCond.SelectedIndex = 0;
            }


            this.Signaler.OnAdd += (s) =>
            {
                this.UpdateGridSignals();
            };
            this.Signaler.OnRemove += (s) =>
            {
                this.UpdateGridSignals();
            };
        }
示例#17
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmInitEquip));

            this.pnlPackage      = new Panel();
            this.sBookPanel      = new PentagramPanel();
            this.btnClearChar    = new Button();
            this.btnCleanPackage = new Button();
            this.btnClearPackage = new Button();
            this.chkAll          = new CheckBox();
            this.btnSave         = new Button();
            this.label1          = new Label();
            this.cbZhiye         = new ComboBox();
            this.charPanel       = new CharPanel();
            this.packagePanel    = new EquipPanel();
            this.packagePanelLv1 = new EquipPanel();
            this.packagePanelLv2 = new EquipPanel();
            this.packagePanelLv3 = new EquipPanel();
            this.packagePanelLv4 = new EquipPanel();
            this.shopPanel       = new EquipPanel();
            this.groupBox2       = new GroupBox();
            this.equipEditor     = new EquipEditor();
            this.pnlPackage.SuspendLayout();
            this.groupBox2.SuspendLayout();
            base.SuspendLayout();
            this.pnlPackage.BackColor   = Color.FromArgb(32, 27, 23);
            this.pnlPackage.BorderStyle = BorderStyle.Fixed3D;
            this.pnlPackage.Controls.Add(this.sBookPanel);
            this.pnlPackage.Controls.Add(this.btnClearChar);
            this.pnlPackage.Controls.Add(this.btnCleanPackage);
            this.pnlPackage.Controls.Add(this.btnClearPackage);
            this.pnlPackage.Controls.Add(this.chkAll);
            this.pnlPackage.Controls.Add(this.btnSave);
            this.pnlPackage.Controls.Add(this.label1);
            this.pnlPackage.Controls.Add(this.cbZhiye);
            this.pnlPackage.Controls.Add(this.charPanel);
            this.pnlPackage.Controls.Add(this.packagePanel);
            this.pnlPackage.Controls.Add(this.packagePanelLv1);
            this.pnlPackage.Controls.Add(this.packagePanelLv2);
            this.pnlPackage.Controls.Add(this.packagePanelLv3);
            this.pnlPackage.Controls.Add(this.packagePanelLv4);
            this.pnlPackage.Controls.Add(this.shopPanel);
            this.pnlPackage.Location                     = new Point(231, 4);
            this.pnlPackage.Name                         = "pnlPackage";
            this.pnlPackage.Size                         = new System.Drawing.Size(509, 497);
            this.pnlPackage.TabIndex                     = 21;
            this.sBookPanel.BackgroundImage              = Resources.skillbook;
            this.sBookPanel.BackgroundImageLayout        = ImageLayout.None;
            this.sBookPanel.Cursor                       = Cursors.Default;
            this.sBookPanel.Enabled                      = false;
            this.sBookPanel.Location                     = new Point(228, 217);
            this.sBookPanel.Margin                       = new System.Windows.Forms.Padding(0);
            this.sBookPanel.Name                         = "sBookPanel";
            this.sBookPanel.Prof                         = -1;
            this.sBookPanel.Size                         = new System.Drawing.Size(58, 58);
            this.sBookPanel.TabIndex                     = 89;
            this.btnClearChar.BackColor                  = Color.FromArgb(64, 64, 64);
            this.btnClearChar.FlatStyle                  = FlatStyle.Popup;
            this.btnClearChar.Font                       = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnClearChar.ForeColor                  = Color.White;
            this.btnClearChar.ImeMode                    = System.Windows.Forms.ImeMode.NoControl;
            this.btnClearChar.Location                   = new Point(311, 385);
            this.btnClearChar.Name                       = "btnClearChar";
            this.btnClearChar.Size                       = new System.Drawing.Size(65, 25);
            this.btnClearChar.TabIndex                   = 84;
            this.btnClearChar.Text                       = "清空人物";
            this.btnClearChar.UseVisualStyleBackColor    = false;
            this.btnClearChar.Click                     += new EventHandler(this.btnClearChar_Click);
            this.btnCleanPackage.BackColor               = Color.FromArgb(64, 64, 64);
            this.btnCleanPackage.FlatStyle               = FlatStyle.Popup;
            this.btnCleanPackage.Font                    = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnCleanPackage.ForeColor               = Color.White;
            this.btnCleanPackage.ImeMode                 = System.Windows.Forms.ImeMode.NoControl;
            this.btnCleanPackage.Location                = new Point(453, 385);
            this.btnCleanPackage.Name                    = "btnCleanPackage";
            this.btnCleanPackage.Size                    = new System.Drawing.Size(42, 25);
            this.btnCleanPackage.TabIndex                = 83;
            this.btnCleanPackage.Text                    = "整理";
            this.btnCleanPackage.UseVisualStyleBackColor = false;
            this.btnCleanPackage.Click                  += new EventHandler(this.btnCleanPackage_Click);
            this.btnClearPackage.BackColor               = Color.FromArgb(64, 64, 64);
            this.btnClearPackage.FlatStyle               = FlatStyle.Popup;
            this.btnClearPackage.Font                    = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnClearPackage.ForeColor               = Color.White;
            this.btnClearPackage.ImeMode                 = System.Windows.Forms.ImeMode.NoControl;
            this.btnClearPackage.Location                = new Point(382, 385);
            this.btnClearPackage.Name                    = "btnClearPackage";
            this.btnClearPackage.Size                    = new System.Drawing.Size(65, 25);
            this.btnClearPackage.TabIndex                = 82;
            this.btnClearPackage.Text                    = "清空包裹";
            this.btnClearPackage.UseVisualStyleBackColor = false;
            this.btnClearPackage.Click                  += new EventHandler(this.btnClearPackage_Click);
            this.chkAll.AutoSize                         = true;
            this.chkAll.Font      = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Bold, GraphicsUnit.Point, 134);
            this.chkAll.ForeColor = Color.Yellow;
            this.chkAll.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
            this.chkAll.Location  = new Point(311, 441);
            this.chkAll.Name      = "chkAll";
            this.chkAll.Size      = new System.Drawing.Size(183, 21);
            this.chkAll.TabIndex  = 81;
            this.chkAll.Text      = "所有职业统一送当前所示装备";
            this.chkAll.UseVisualStyleBackColor = true;
            this.btnSave.BackColor = Color.FromArgb(64, 64, 64);
            this.btnSave.FlatStyle = FlatStyle.Popup;
            this.btnSave.Font      = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnSave.ForeColor = Color.White;
            this.btnSave.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
            this.btnSave.Location  = new Point(368, 465);
            this.btnSave.Name      = "btnSave";
            this.btnSave.Size      = new System.Drawing.Size(73, 25);
            this.btnSave.TabIndex  = 80;
            this.btnSave.TabStop   = false;
            this.btnSave.Text      = "保存设置";
            this.btnSave.UseVisualStyleBackColor = false;
            this.btnSave.Click            += new EventHandler(this.btnSave_Click);
            this.label1.AutoSize           = true;
            this.label1.Font               = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Bold, GraphicsUnit.Point, 134);
            this.label1.ForeColor          = Color.Yellow;
            this.label1.Location           = new Point(308, 418);
            this.label1.Name               = "label1";
            this.label1.Size               = new System.Drawing.Size(68, 17);
            this.label1.TabIndex           = 79;
            this.label1.Text               = "加载数据:";
            this.cbZhiye.DropDownHeight    = 206;
            this.cbZhiye.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cbZhiye.FormattingEnabled = true;
            this.cbZhiye.IntegralHeight    = false;
            ComboBox.ObjectCollection items = this.cbZhiye.Items;
            object[] objArray = new object[] { "魔法师", "剑士", "弓箭手", "魔剑士", "圣导师", "召唤", "决斗士" };
            items.AddRange(objArray);
            this.cbZhiye.Location                      = new Point(378, 416);
            this.cbZhiye.Name                          = "cbZhiye";
            this.cbZhiye.Size                          = new System.Drawing.Size(69, 20);
            this.cbZhiye.TabIndex                      = 78;
            this.cbZhiye.TabStop                       = false;
            this.cbZhiye.SelectedIndexChanged         += new EventHandler(this.cbZhiye_SelectedIndexChanged);
            this.charPanel.BackgroundImage             = Resources.char_2;
            this.charPanel.BackgroundImageLayout       = ImageLayout.None;
            this.charPanel.Cursor                      = Cursors.Default;
            this.charPanel.Location                    = new Point(0, -1);
            this.charPanel.Margin                      = new System.Windows.Forms.Padding(0);
            this.charPanel.Name                        = "charPanel";
            this.charPanel.Prof                        = -1;
            this.charPanel.Size                        = new System.Drawing.Size(295, 284);
            this.charPanel.TabIndex                    = 13;
            this.charPanel.MouseLeave                 += new EventHandler(this.charPanel_MouseLeave);
            this.packagePanel.BackgroundImage          = Resources.warehouse_2;
            this.packagePanel.BackgroundImageLayout    = ImageLayout.None;
            this.packagePanel.Cursor                   = Cursors.Default;
            this.packagePanel.Location                 = new Point(45, 283);
            this.packagePanel.Margin                   = new System.Windows.Forms.Padding(0);
            this.packagePanel.Name                     = "packagePanel";
            this.packagePanel.Size                     = new System.Drawing.Size(209, 209);
            this.packagePanel.TabIndex                 = 14;
            this.packagePanel.MouseLeave              += new EventHandler(this.packagePanel_MouseLeave);
            this.packagePanelLv1.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv1.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv1.Cursor                = Cursors.Default;
            this.packagePanelLv1.Enabled               = false;
            this.packagePanelLv1.Location              = new Point(295, 0);
            this.packagePanelLv1.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv1.Name                  = "packagePanelLv1";
            this.packagePanelLv1.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv1.TabIndex              = 85;
            this.packagePanelLv2.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv2.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv2.Cursor                = Cursors.Default;
            this.packagePanelLv2.Enabled               = false;
            this.packagePanelLv2.Location              = new Point(295, 107);
            this.packagePanelLv2.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv2.Name                  = "packagePanelLv2";
            this.packagePanelLv2.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv2.TabIndex              = 86;
            this.packagePanelLv3.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv3.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv3.Cursor                = Cursors.Default;
            this.packagePanelLv3.Location              = new Point(295, 214);
            this.packagePanelLv3.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv3.Name                  = "packagePanelLv3";
            this.packagePanelLv3.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv3.TabIndex              = 87;
            this.packagePanelLv3.Visible               = false;
            this.packagePanelLv4.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv4.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv4.Cursor                = Cursors.Default;
            this.packagePanelLv4.Enabled               = false;
            this.packagePanelLv4.Location              = new Point(295, 214);
            this.packagePanelLv4.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv4.Name                  = "packagePanelLv4";
            this.packagePanelLv4.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv4.TabIndex              = 88;
            this.shopPanel.BackgroundImage             = Resources.warehouse_2;
            this.shopPanel.BackgroundImageLayout       = ImageLayout.None;
            this.shopPanel.Cursor                      = Cursors.Default;
            this.shopPanel.Location                    = new Point(295, 214);
            this.shopPanel.Margin                      = new System.Windows.Forms.Padding(0);
            this.shopPanel.Name                        = "shopPanel";
            this.shopPanel.Size                        = new System.Drawing.Size(209, 105);
            this.shopPanel.TabIndex                    = 58;
            this.shopPanel.Visible                     = false;
            this.groupBox2.Controls.Add(this.equipEditor);
            this.groupBox2.Location            = new Point(2, 5);
            this.groupBox2.Name                = "groupBox2";
            this.groupBox2.Size                = new System.Drawing.Size(225, 496);
            this.groupBox2.TabIndex            = 77;
            this.groupBox2.TabStop             = false;
            this.groupBox2.Text                = "人物出生送装备设置";
            this.equipEditor.AllPart           = false;
            this.equipEditor.DefaultDurability = 255;
            this.equipEditor.Location          = new Point(4, 17);
            this.equipEditor.Margin            = new System.Windows.Forms.Padding(0);
            this.equipEditor.Name              = "equipEditor";
            this.equipEditor.Size              = new System.Drawing.Size(216, 450);
            this.equipEditor.TabIndex          = 1;
            base.AutoScaleDimensions           = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize    = new System.Drawing.Size(739, 501);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.pnlPackage);
            base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "frmInitEquip";
            base.ShowIcon        = false;
            base.ShowInTaskbar   = false;
            base.StartPosition   = FormStartPosition.CenterParent;
            this.Text            = "人物出生送装备设置";
            base.FormClosing    += new FormClosingEventHandler(this.frmInitEquip_FormClosing);
            base.FormClosed     += new FormClosedEventHandler(this.frmInitEquip_FormClosed);
            base.Load           += new EventHandler(this.frmInitEquip_Load);
            this.pnlPackage.ResumeLayout(false);
            this.pnlPackage.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            base.ResumeLayout(false);
        }
示例#18
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MysqlForm));

            this.groupBox1 = new GroupBox();
            this.label2    = new Label();
            this.button2   = new Button();
            this.groupBox2 = new GroupBox();
            this.button5   = new Button();
            this.button4   = new Button();
            this.groupBox3 = new GroupBox();
            this.label1    = new Label();
            this.label3    = new Label();
            this.comboBox1 = new ComboBox();
            this.groupBox4 = new GroupBox();
            this.label5    = new Label();
            this.label4    = new Label();
            this.comboBox2 = new ComboBox();
            this.button3   = new Button();
            this.button1   = new Button();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox4.SuspendLayout();
            base.SuspendLayout();
            this.groupBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.button2);
            this.groupBox1.Location = new Point(12, 12);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(564, 52);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = Localization.Get("数据库升级(仅对杰奇系统有效)");
            this.label2.AutoSize    = true;
            this.label2.Location    = new Point(87, 25);
            this.label2.Name        = "label2";
            this.label2.Size        = new System.Drawing.Size(317, 12);
            this.label2.TabIndex    = 4;
            this.label2.Text        = Localization.Get("优化引导加快查询速度(初次使用优化一次之后不必再优化)");
            this.button2.Location   = new Point(6, 20);
            this.button2.Name       = "button2";
            this.button2.Size       = new System.Drawing.Size(75, 23);
            this.button2.TabIndex   = 1;
            this.button2.Text       = Localization.Get("优化");
            this.button2.UseVisualStyleBackColor = true;
            this.groupBox2.Controls.Add(this.button5);
            this.groupBox2.Controls.Add(this.button4);
            this.groupBox2.Location = new Point(12, 70);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Size     = new System.Drawing.Size(206, 97);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop  = false;
            this.groupBox2.Text     = Localization.Get("单次优化维护表");
            this.button5.Location   = new Point(110, 19);
            this.button5.Name       = "button5";
            this.button5.Size       = new System.Drawing.Size(75, 23);
            this.button5.TabIndex   = 1;
            this.button5.Text       = Localization.Get("修复表");
            this.button5.UseVisualStyleBackColor = true;
            this.button4.Location = new Point(6, 19);
            this.button4.Name     = "button4";
            this.button4.Size     = new System.Drawing.Size(75, 23);
            this.button4.TabIndex = 0;
            this.button4.Text     = Localization.Get("优化表");
            this.button4.UseVisualStyleBackColor = true;
            this.groupBox3.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.groupBox3.Location          = new Point(12, 184);
            this.groupBox3.Name              = "groupBox3";
            this.groupBox3.Size              = new System.Drawing.Size(564, 172);
            this.groupBox3.TabIndex          = 2;
            this.groupBox3.TabStop           = false;
            this.groupBox3.Text              = Localization.Get("进度显示");
            this.label1.AutoSize             = true;
            this.label1.Location             = new Point(13, 26);
            this.label1.Name                 = "label1";
            this.label1.Size                 = new System.Drawing.Size(17, 12);
            this.label1.TabIndex             = 3;
            this.label1.Text                 = Localization.Get("每");
            this.label3.Anchor               = AnchorStyles.Top | AnchorStyles.Right;
            this.label3.AutoSize             = true;
            this.label3.Location             = new Point(217, 26);
            this.label3.Name                 = "label3";
            this.label3.Size                 = new System.Drawing.Size(125, 12);
            this.label3.TabIndex             = 5;
            this.label3.Text                 = Localization.Get("执行优化和修复数据库");
            this.comboBox1.Anchor            = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.comboBox1.FormattingEnabled = true;
            ComboBox.ObjectCollection items = this.comboBox1.Items;
            object[] objArray = new object[] { Localization.Get("凌晨1点"), Localization.Get("凌晨2点"), Localization.Get("凌晨3点"), Localization.Get("凌晨4点"), Localization.Get("凌晨5点"), Localization.Get("凌晨6点") };
            items.AddRange(objArray);
            this.comboBox1.Location = new Point(114, 22);
            this.comboBox1.Name     = "comboBox1";
            this.comboBox1.Size     = new System.Drawing.Size(97, 20);
            this.comboBox1.TabIndex = 6;
            this.groupBox4.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.groupBox4.Controls.Add(this.label5);
            this.groupBox4.Controls.Add(this.label4);
            this.groupBox4.Controls.Add(this.comboBox2);
            this.groupBox4.Controls.Add(this.button3);
            this.groupBox4.Controls.Add(this.button1);
            this.groupBox4.Controls.Add(this.comboBox1);
            this.groupBox4.Controls.Add(this.label3);
            this.groupBox4.Controls.Add(this.label1);
            this.groupBox4.Location          = new Point(224, 70);
            this.groupBox4.Name              = "groupBox4";
            this.groupBox4.Size              = new System.Drawing.Size(352, 97);
            this.groupBox4.TabIndex          = 3;
            this.groupBox4.TabStop           = false;
            this.groupBox4.Text              = Localization.Get("循环优化维护数据库");
            this.label5.Anchor               = AnchorStyles.Top | AnchorStyles.Right;
            this.label5.AutoSize             = true;
            this.label5.Location             = new Point(139, 48);
            this.label5.Name                 = "label5";
            this.label5.Size                 = new System.Drawing.Size(203, 12);
            this.label5.TabIndex             = 11;
            this.label5.Text                 = Localization.Get("优化和修复时采集会暂停,但没有影响");
            this.label4.AutoSize             = true;
            this.label4.Location             = new Point(81, 26);
            this.label4.Name                 = "label4";
            this.label4.Size                 = new System.Drawing.Size(29, 12);
            this.label4.TabIndex             = 10;
            this.label4.Text                 = Localization.Get("天的");
            this.comboBox2.FormattingEnabled = true;
            ComboBox.ObjectCollection objectCollections = this.comboBox2.Items;
            objArray = new object[] { "1", "2", "3", "4", "5", "6" };
            objectCollections.AddRange(objArray);
            this.comboBox2.Location = new Point(36, 23);
            this.comboBox2.Name     = "comboBox2";
            this.comboBox2.Size     = new System.Drawing.Size(43, 20);
            this.comboBox2.TabIndex = 9;
            this.comboBox2.Text     = "1";
            this.button3.Anchor     = AnchorStyles.Top | AnchorStyles.Right;
            this.button3.Location   = new Point(267, 68);
            this.button3.Name       = "button3";
            this.button3.Size       = new System.Drawing.Size(75, 23);
            this.button3.TabIndex   = 8;
            this.button3.Text       = "终止任务";
            this.button3.UseVisualStyleBackColor = true;
            this.button1.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            this.button1.Location = new Point(173, 68);
            this.button1.Name     = "button1";
            this.button1.Size     = new System.Drawing.Size(75, 23);
            this.button1.TabIndex = 7;
            this.button1.Text     = Localization.Get("启动任务");
            this.button1.UseVisualStyleBackColor = true;
            base.ClientSize = new System.Drawing.Size(588, 375);
            base.Controls.Add(this.groupBox4);
            base.Controls.Add(this.groupBox3);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.groupBox1);
            this.Font  = new System.Drawing.Font(Localization.Font, 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            base.Icon  = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.Name  = "MysqlForm";
            this.Text  = Localization.Get("数据库维护");
            base.Load += new EventHandler(this.MysqlForm_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            base.ResumeLayout(false);
        }
 public static void ClearThenAddRange(this ComboBox.ObjectCollection @this, string[] data)
 {
     @this.Clear();
     @this.AddRange(data);
 }
示例#20
0
        private void InitializeComponent()
        {
            this.TextBoxAssayProtocol = new TextBox();
            this.Label5                      = new Label();
            this.TextBoxAssayCode            = new TextBox();
            this.CheckBoxAssayActive         = new CheckBox();
            this.Label8                      = new Label();
            this.TextBoxSearchValue          = new TextBox();
            this.Label2                      = new Label();
            this.ComboBoxTestFileMachineName = new ComboBox();
            this.Label17                     = new Label();
            this.GroupBoxSearch              = new GroupBox();
            this.Label15                     = new Label();
            this.Label14                     = new Label();
            this.Label1                      = new Label();
            this.TextBoxAssayName            = new TextBox();
            this.DataGridView1               = new DataGridView();
            this.MachineName                 = new DataGridViewTextBoxColumn();
            this.AssayName                   = new DataGridViewTextBoxColumn();
            this.AssayCode                   = new DataGridViewTextBoxColumn();
            this.AssayType                   = new DataGridViewTextBoxColumn();
            this.AssayProtocol               = new DataGridViewTextBoxColumn();
            this.AssayActive                 = new DataGridViewTextBoxColumn();
            this.btnSave                     = new Button();
            this.DataGridViewTextBoxColumn1  = new DataGridViewTextBoxColumn();
            this.DataGridViewTextBoxColumn2  = new DataGridViewTextBoxColumn();
            this.DataGridViewTextBoxColumn3  = new DataGridViewTextBoxColumn();
            this.DataGridViewTextBoxColumn4  = new DataGridViewTextBoxColumn();
            this.DataGridViewTextBoxColumn5  = new DataGridViewTextBoxColumn();
            this.Label3                      = new Label();
            this.TextBoxAssayType            = new TextBox();
            this.GroupBoxSearch.SuspendLayout();
            this.DataGridView1.BeginInit();
            this.SuspendLayout();
            this.TextBoxAssayProtocol.BorderStyle = BorderStyle.FixedSingle;
            this.TextBoxAssayProtocol.Font        = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.TextBoxAssayProtocol.Location    = new Point(115, 143);
            this.TextBoxAssayProtocol.MaxLength   = 100;
            this.TextBoxAssayProtocol.Name        = "TextBoxAssayProtocol";
            this.TextBoxAssayProtocol.Size        = new Size(194, 23);
            this.TextBoxAssayProtocol.TabIndex    = 304;
            this.Label5.AutoSize = true;
            this.Label5.Font     = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Label5.Location = new Point(12, 89);
            this.Label5.Name     = "Label5";
            this.Label5.Size     = new Size(83, 17);
            this.Label5.TabIndex = 302;
            this.Label5.Text     = "Assay Code";
            this.TextBoxAssayCode.BorderStyle = BorderStyle.FixedSingle;
            this.TextBoxAssayCode.Font        = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.TextBoxAssayCode.Location    = new Point(115, 85);
            this.TextBoxAssayCode.MaxLength   = 100;
            this.TextBoxAssayCode.Name        = "TextBoxAssayCode";
            this.TextBoxAssayCode.Size        = new Size(104, 23);
            this.TextBoxAssayCode.TabIndex    = 301;
            this.CheckBoxAssayActive.AutoSize = true;
            this.CheckBoxAssayActive.Location = new Point(405, 192);
            this.CheckBoxAssayActive.Name     = "CheckBoxAssayActive";
            this.CheckBoxAssayActive.Size     = new Size(56, 17);
            this.CheckBoxAssayActive.TabIndex = 300;
            this.CheckBoxAssayActive.Text     = "Active";
            this.CheckBoxAssayActive.UseVisualStyleBackColor = true;
            this.Label8.AutoSize                = true;
            this.Label8.Font                    = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Label8.Location                = new Point(12, 31);
            this.Label8.Name                    = "Label8";
            this.Label8.Size                    = new Size(85, 17);
            this.Label8.TabIndex                = 294;
            this.Label8.Text                    = "LIS Machine";
            this.TextBoxSearchValue.Anchor      = AnchorStyles.Top | AnchorStyles.Right;
            this.TextBoxSearchValue.BackColor   = Color.AliceBlue;
            this.TextBoxSearchValue.BorderStyle = BorderStyle.FixedSingle;
            this.TextBoxSearchValue.Font        = new Font("Microsoft Sans Serif", 11f);
            this.TextBoxSearchValue.ForeColor   = Color.Black;
            this.TextBoxSearchValue.Location    = new Point(6, 14);
            this.TextBoxSearchValue.Margin      = new Padding(0);
            this.TextBoxSearchValue.Name        = "TextBoxSearchValue";
            this.TextBoxSearchValue.Size        = new Size((int)byte.MaxValue, 24);
            this.TextBoxSearchValue.TabIndex    = 242;
            this.Label2.AutoSize                = true;
            this.Label2.Font                    = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Label2.Location                = new Point(12, 147);
            this.Label2.Name                    = "Label2";
            this.Label2.Size                    = new Size(60, 17);
            this.Label2.TabIndex                = 305;
            this.Label2.Text                    = "Protocol";
            this.ComboBoxTestFileMachineName.FormattingEnabled = true;
            ComboBox.ObjectCollection items1 = this.ComboBoxTestFileMachineName.Items;
            object[] items2 = new object[14];
            int      index1 = 0;
            string   str1   = "ARCHITECT";

            items2[index1] = (object)str1;
            int    index2 = 1;
            string str2   = "ELITE";

            items2[index2] = (object)str2;
            int    index3 = 2;
            string str3   = "Cell Dyn Rubi";

            items2[index3] = (object)str3;
            int    index4 = 3;
            string str4   = "IMMULITE 2000";

            items2[index4] = (object)str4;
            int    index5 = 4;
            string str5   = "SIEMENS ADVIA";

            items2[index5] = (object)str5;
            int    index6 = 5;
            string str6   = "SIEMENS DIMENSION";

            items2[index6] = (object)str6;
            int    index7 = 6;
            string str7   = "ADAMS A1c HA";

            items2[index7] = (object)str7;
            int    index8 = 7;
            string str8   = "Sysmex";

            items2[index8] = (object)str8;
            int    index9 = 8;
            string str9   = "Biorad D10";

            items2[index9] = (object)str9;
            int    index10 = 9;
            string str10   = "Biorad Variant";

            items2[index10] = (object)str10;
            int    index11 = 10;
            string str11   = "Celltac Chemi";

            items2[index11] = (object)str11;
            int    index12 = 11;
            string str12   = "VIDAS";

            items2[index12] = (object)str12;
            int    index13 = 12;
            string str13   = "Chemray";

            items2[index13] = (object)str13;
            int    index14 = 13;
            string str14   = "Hemaray";

            items2[index14] = (object)str14;
            items1.AddRange(items2);
            this.ComboBoxTestFileMachineName.Location = new Point(115, 29);
            this.ComboBoxTestFileMachineName.Name     = "ComboBoxTestFileMachineName";
            this.ComboBoxTestFileMachineName.Size     = new Size(346, 21);
            this.ComboBoxTestFileMachineName.TabIndex = 303;
            this.Label17.Anchor        = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.Label17.BorderStyle   = BorderStyle.Fixed3D;
            this.Label17.FlatStyle     = FlatStyle.Flat;
            this.Label17.Font          = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.Label17.ForeColor     = Color.Black;
            this.Label17.Location      = new Point(499, 25);
            this.Label17.Name          = "Label17";
            this.Label17.Size          = new Size(72, 24);
            this.Label17.TabIndex      = 299;
            this.Label17.Text          = "Charges";
            this.Label17.TextAlign     = ContentAlignment.MiddleLeft;
            this.GroupBoxSearch.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            this.GroupBoxSearch.Controls.Add((Control)this.TextBoxSearchValue);
            this.GroupBoxSearch.Font      = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.GroupBoxSearch.ForeColor = Color.FromArgb(192, 0, 0);
            this.GroupBoxSearch.Location  = new Point(583, 11);
            this.GroupBoxSearch.Name      = "GroupBoxSearch";
            this.GroupBoxSearch.Size      = new Size(267, 43);
            this.GroupBoxSearch.TabIndex  = 298;
            this.GroupBoxSearch.TabStop   = false;
            this.GroupBoxSearch.Text      = "Search";
            this.Label15.Anchor           = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
            this.Label15.BorderStyle      = BorderStyle.Fixed3D;
            this.Label15.Font             = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Label15.ForeColor        = SystemColors.ActiveBorder;
            this.Label15.Location         = new Point(489, -1);
            this.Label15.Name             = "Label15";
            this.Label15.Size             = new Size(3, 415);
            this.Label15.TabIndex         = 297;
            this.Label14.Anchor           = AnchorStyles.Bottom | AnchorStyles.Left;
            this.Label14.BorderStyle      = BorderStyle.Fixed3D;
            this.Label14.Font             = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Label14.ForeColor        = SystemColors.ActiveBorder;
            this.Label14.Location         = new Point(4, 361);
            this.Label14.Name             = "Label14";
            this.Label14.Size             = new Size(487, 3);
            this.Label14.TabIndex         = 296;
            this.Label1.AutoSize          = true;
            this.Label1.Font     = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Label1.Location = new Point(12, 60);
            this.Label1.Name     = "Label1";
            this.Label1.Size     = new Size(87, 17);
            this.Label1.TabIndex = 295;
            this.Label1.Text     = "Assay Name";
            this.TextBoxAssayName.BorderStyle        = BorderStyle.FixedSingle;
            this.TextBoxAssayName.Font               = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.TextBoxAssayName.Location           = new Point(115, 56);
            this.TextBoxAssayName.MaxLength          = 100;
            this.TextBoxAssayName.Name               = "TextBoxAssayName";
            this.TextBoxAssayName.Size               = new Size(194, 23);
            this.TextBoxAssayName.TabIndex           = 291;
            this.DataGridView1.AllowUserToAddRows    = false;
            this.DataGridView1.AllowUserToDeleteRows = false;
            this.DataGridView1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            DataGridViewColumnCollection columns = this.DataGridView1.Columns;

            DataGridViewColumn[] dataGridViewColumnArray = new DataGridViewColumn[6];
            int index15 = 0;
            DataGridViewTextBoxColumn machineName = this.MachineName;

            dataGridViewColumnArray[index15] = (DataGridViewColumn)machineName;
            int index16 = 1;
            DataGridViewTextBoxColumn assayName = this.AssayName;

            dataGridViewColumnArray[index16] = (DataGridViewColumn)assayName;
            int index17 = 2;
            DataGridViewTextBoxColumn assayCode = this.AssayCode;

            dataGridViewColumnArray[index17] = (DataGridViewColumn)assayCode;
            int index18 = 3;
            DataGridViewTextBoxColumn assayType = this.AssayType;

            dataGridViewColumnArray[index18] = (DataGridViewColumn)assayType;
            int index19 = 4;
            DataGridViewTextBoxColumn assayProtocol = this.AssayProtocol;

            dataGridViewColumnArray[index19] = (DataGridViewColumn)assayProtocol;
            int index20 = 5;
            DataGridViewTextBoxColumn assayActive = this.AssayActive;

            dataGridViewColumnArray[index20] = (DataGridViewColumn)assayActive;
            columns.AddRange(dataGridViewColumnArray);
            this.DataGridView1.EditMode   = DataGridViewEditMode.EditOnEnter;
            this.DataGridView1.Location   = new Point(498, 60);
            this.DataGridView1.Name       = "DataGridView1";
            this.DataGridView1.ReadOnly   = true;
            this.DataGridView1.Size       = new Size(353, 344);
            this.DataGridView1.TabIndex   = 293;
            this.MachineName.HeaderText   = "Machine Name";
            this.MachineName.Name         = "MachineName";
            this.MachineName.ReadOnly     = true;
            this.MachineName.Width        = 120;
            this.AssayName.HeaderText     = "Assay Name";
            this.AssayName.Name           = "AssayName";
            this.AssayName.ReadOnly       = true;
            this.AssayCode.HeaderText     = "Assay Code";
            this.AssayCode.Name           = "AssayCode";
            this.AssayCode.ReadOnly       = true;
            this.AssayType.HeaderText     = "Assay Type";
            this.AssayType.Name           = "AssayType";
            this.AssayType.ReadOnly       = true;
            this.AssayProtocol.HeaderText = "Assay Protocol";
            this.AssayProtocol.Name       = "AssayProtocol";
            this.AssayProtocol.ReadOnly   = true;
            this.AssayActive.HeaderText   = "Active";
            this.AssayActive.Name         = "AssayActive";
            this.AssayActive.ReadOnly     = true;
            this.btnSave.Anchor           = AnchorStyles.Bottom | AnchorStyles.Left;
            this.btnSave.Location         = new Point(405, 377);
            this.btnSave.Name             = "btnSave";
            this.btnSave.Size             = new Size(75, 24);
            this.btnSave.TabIndex         = 292;
            this.btnSave.Text             = "&Save";
            this.DataGridViewTextBoxColumn1.HeaderText = "Machine Name";
            this.DataGridViewTextBoxColumn1.Name       = "DataGridViewTextBoxColumn1";
            this.DataGridViewTextBoxColumn1.Width      = 120;
            this.DataGridViewTextBoxColumn2.HeaderText = "Assay Name";
            this.DataGridViewTextBoxColumn2.Name       = "DataGridViewTextBoxColumn2";
            this.DataGridViewTextBoxColumn3.HeaderText = "Assay Code";
            this.DataGridViewTextBoxColumn3.Name       = "DataGridViewTextBoxColumn3";
            this.DataGridViewTextBoxColumn4.HeaderText = "Assay Protocol";
            this.DataGridViewTextBoxColumn4.Name       = "DataGridViewTextBoxColumn4";
            this.DataGridViewTextBoxColumn5.HeaderText = "Active";
            this.DataGridViewTextBoxColumn5.Name       = "DataGridViewTextBoxColumn5";
            this.Label3.AutoSize = true;
            this.Label3.Font     = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Label3.Location = new Point(12, 118);
            this.Label3.Name     = "Label3";
            this.Label3.Size     = new Size(82, 17);
            this.Label3.TabIndex = 307;
            this.Label3.Text     = "Assay Type";
            this.TextBoxAssayType.BorderStyle = BorderStyle.FixedSingle;
            this.TextBoxAssayType.Font        = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.TextBoxAssayType.Location    = new Point(115, 114);
            this.TextBoxAssayType.MaxLength   = 100;
            this.TextBoxAssayType.Name        = "TextBoxAssayType";
            this.TextBoxAssayType.Size        = new Size(141, 23);
            this.TextBoxAssayType.TabIndex    = 306;
            this.AutoScaleDimensions          = new SizeF(6f, 13f);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize    = new Size(855, 413);
            this.Controls.Add((Control)this.Label3);
            this.Controls.Add((Control)this.TextBoxAssayType);
            this.Controls.Add((Control)this.TextBoxAssayProtocol);
            this.Controls.Add((Control)this.Label5);
            this.Controls.Add((Control)this.TextBoxAssayCode);
            this.Controls.Add((Control)this.CheckBoxAssayActive);
            this.Controls.Add((Control)this.Label8);
            this.Controls.Add((Control)this.Label2);
            this.Controls.Add((Control)this.ComboBoxTestFileMachineName);
            this.Controls.Add((Control)this.Label17);
            this.Controls.Add((Control)this.GroupBoxSearch);
            this.Controls.Add((Control)this.Label15);
            this.Controls.Add((Control)this.Label14);
            this.Controls.Add((Control)this.Label1);
            this.Controls.Add((Control)this.TextBoxAssayName);
            this.Controls.Add((Control)this.DataGridView1);
            this.Controls.Add((Control)this.btnSave);
            this.Name        = "PMS_LISAssayList";
            this.Text        = "LIS Assay List";
            this.WindowState = FormWindowState.Maximized;
            this.GroupBoxSearch.ResumeLayout(false);
            this.GroupBoxSearch.PerformLayout();
            this.DataGridView1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
示例#21
0
        private void InitializeComponent()
        {
            this.groupBox1            = new GroupBox();
            this.cmbNotes             = new ComboBox();
            this.txtNotes             = new TextBox();
            this.label8               = new Label();
            this.txtPropertyTest      = new TextBox();
            this.label7               = new Label();
            this.cmbSpawnerMap        = new ComboBox();
            this.cmbEntryHas2         = new ComboBox();
            this.chkEntryCase2        = new CheckBox();
            this.txtSpawnerEntry2     = new TextBox();
            this.label6               = new Label();
            this.cmbEntryTypeHas2     = new ComboBox();
            this.txtSpawnerEntryType2 = new TextBox();
            this.label5               = new Label();
            this.cmbEntryTypeHas      = new ComboBox();
            this.cmbEntryHas          = new ComboBox();
            this.cmbNameHas           = new ComboBox();
            this.txtSpawnerEntryType  = new TextBox();
            this.label2               = new Label();
            this.label18              = new Label();
            this.numAvgSpawnTime      = new NumericUpDown();
            this.cmbAvgSpawnTime      = new ComboBox();
            this.chkAvgSpawnTime      = new CheckBox();
            this.label17              = new Label();
            this.cmbRunning           = new ComboBox();
            this.label16              = new Label();
            this.cmbProximity         = new ComboBox();
            this.chkNameCase          = new CheckBox();
            this.chkEntryCase         = new CheckBox();
            this.label4               = new Label();
            this.label3               = new Label();
            this.label1               = new Label();
            this.cmbSequential        = new ComboBox();
            this.cmbInContainers      = new ComboBox();
            this.cmbSmartSpawning     = new ComboBox();
            this.txtSpawnerEntry      = new TextBox();
            this.label38              = new Label();
            this.txtSpawnerName       = new TextBox();
            this.label30              = new Label();
            this.btnClose             = new Button();
            this.btnApply             = new Button();
            this.groupBox1.SuspendLayout();
            ((ISupportInitialize)this.numAvgSpawnTime).BeginInit();
            base.SuspendLayout();
            this.groupBox1.Controls.Add(this.cmbNotes);
            this.groupBox1.Controls.Add(this.txtNotes);
            this.groupBox1.Controls.Add(this.label8);
            this.groupBox1.Controls.Add(this.txtPropertyTest);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.cmbSpawnerMap);
            this.groupBox1.Controls.Add(this.cmbEntryHas2);
            this.groupBox1.Controls.Add(this.chkEntryCase2);
            this.groupBox1.Controls.Add(this.txtSpawnerEntry2);
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.cmbEntryTypeHas2);
            this.groupBox1.Controls.Add(this.txtSpawnerEntryType2);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.cmbEntryTypeHas);
            this.groupBox1.Controls.Add(this.cmbEntryHas);
            this.groupBox1.Controls.Add(this.cmbNameHas);
            this.groupBox1.Controls.Add(this.txtSpawnerEntryType);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.label18);
            this.groupBox1.Controls.Add(this.numAvgSpawnTime);
            this.groupBox1.Controls.Add(this.cmbAvgSpawnTime);
            this.groupBox1.Controls.Add(this.chkAvgSpawnTime);
            this.groupBox1.Controls.Add(this.label17);
            this.groupBox1.Controls.Add(this.cmbRunning);
            this.groupBox1.Controls.Add(this.label16);
            this.groupBox1.Controls.Add(this.cmbProximity);
            this.groupBox1.Controls.Add(this.chkNameCase);
            this.groupBox1.Controls.Add(this.chkEntryCase);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.cmbSequential);
            this.groupBox1.Controls.Add(this.cmbInContainers);
            this.groupBox1.Controls.Add(this.cmbSmartSpawning);
            this.groupBox1.Controls.Add(this.txtSpawnerEntry);
            this.groupBox1.Controls.Add(this.label38);
            this.groupBox1.Controls.Add(this.txtSpawnerName);
            this.groupBox1.Controls.Add(this.label30);
            this.groupBox1.Location     = new Point(8, 16);
            this.groupBox1.Name         = "groupBox1";
            this.groupBox1.Size         = new System.Drawing.Size(344, 416);
            this.groupBox1.TabIndex     = 0;
            this.groupBox1.TabStop      = false;
            this.groupBox1.Text         = "Filter Settings";
            this.cmbNotes.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection items = this.cmbNotes.Items;
            object[] objArray = new object[] { "has", "has not" };
            items.AddRange(objArray);
            this.cmbNotes.Location           = new Point(48, 168);
            this.cmbNotes.Name               = "cmbNotes";
            this.cmbNotes.Size               = new System.Drawing.Size(64, 21);
            this.cmbNotes.TabIndex           = 270;
            this.txtNotes.Location           = new Point(112, 168);
            this.txtNotes.Name               = "txtNotes";
            this.txtNotes.Size               = new System.Drawing.Size(168, 20);
            this.txtNotes.TabIndex           = 268;
            this.txtNotes.Text               = "";
            this.label8.Location             = new Point(8, 168);
            this.label8.Name                 = "label8";
            this.label8.Size                 = new System.Drawing.Size(40, 16);
            this.label8.TabIndex             = 269;
            this.label8.Text                 = "Notes:";
            this.txtPropertyTest.Location    = new Point(80, 352);
            this.txtPropertyTest.Name        = "txtPropertyTest";
            this.txtPropertyTest.Size        = new System.Drawing.Size(256, 20);
            this.txtPropertyTest.TabIndex    = 266;
            this.txtPropertyTest.Text        = "";
            this.label7.Location             = new Point(8, 352);
            this.label7.Name                 = "label7";
            this.label7.Size                 = new System.Drawing.Size(80, 16);
            this.label7.TabIndex             = 267;
            this.label7.Text                 = "Property Test:";
            this.cmbSpawnerMap.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection objectCollections = this.cmbSpawnerMap.Items;
            objArray = new object[] { "Current map", "All maps" };
            objectCollections.AddRange(objArray);
            this.cmbSpawnerMap.Location     = new Point(8, 384);
            this.cmbSpawnerMap.Name         = "cmbSpawnerMap";
            this.cmbSpawnerMap.Size         = new System.Drawing.Size(96, 21);
            this.cmbSpawnerMap.TabIndex     = 265;
            this.cmbEntryHas2.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection items1 = this.cmbEntryHas2.Items;
            objArray = new object[] { "has", "has not" };
            items1.AddRange(objArray);
            this.cmbEntryHas2.Location     = new Point(48, 72);
            this.cmbEntryHas2.Name         = "cmbEntryHas2";
            this.cmbEntryHas2.Size         = new System.Drawing.Size(64, 21);
            this.cmbEntryHas2.TabIndex     = 264;
            this.chkEntryCase2.Location    = new Point(232, 72);
            this.chkEntryCase2.Name        = "chkEntryCase2";
            this.chkEntryCase2.Size        = new System.Drawing.Size(104, 16);
            this.chkEntryCase2.TabIndex    = 263;
            this.chkEntryCase2.Text        = "Case sensitive";
            this.txtSpawnerEntry2.Location = new Point(112, 72);
            this.txtSpawnerEntry2.Name     = "txtSpawnerEntry2";
            this.txtSpawnerEntry2.Size     = new System.Drawing.Size(112, 20);
            this.txtSpawnerEntry2.TabIndex = 261;
            this.txtSpawnerEntry2.Text     = "";
            this.label6.Location           = new Point(8, 72);
            this.label6.Name     = "label6";
            this.label6.Size     = new System.Drawing.Size(40, 16);
            this.label6.TabIndex = 262;
            this.label6.Text     = "Entry:";
            this.cmbEntryTypeHas2.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection objectCollections1 = this.cmbEntryTypeHas2.Items;
            objArray = new object[] { "has", "has not" };
            objectCollections1.AddRange(objArray);
            this.cmbEntryTypeHas2.Location     = new Point(64, 120);
            this.cmbEntryTypeHas2.Name         = "cmbEntryTypeHas2";
            this.cmbEntryTypeHas2.Size         = new System.Drawing.Size(64, 21);
            this.cmbEntryTypeHas2.TabIndex     = 260;
            this.txtSpawnerEntryType2.Location = new Point(128, 120);
            this.txtSpawnerEntryType2.Name     = "txtSpawnerEntryType2";
            this.txtSpawnerEntryType2.Size     = new System.Drawing.Size(152, 20);
            this.txtSpawnerEntryType2.TabIndex = 258;
            this.txtSpawnerEntryType2.Text     = "";
            this.label5.Location = new Point(8, 120);
            this.label5.Name     = "label5";
            this.label5.Size     = new System.Drawing.Size(80, 16);
            this.label5.TabIndex = 259;
            this.label5.Text     = "Entry Type:";
            this.cmbEntryTypeHas.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection items2 = this.cmbEntryTypeHas.Items;
            objArray = new object[] { "has", "has not" };
            items2.AddRange(objArray);
            this.cmbEntryTypeHas.Location  = new Point(64, 96);
            this.cmbEntryTypeHas.Name      = "cmbEntryTypeHas";
            this.cmbEntryTypeHas.Size      = new System.Drawing.Size(64, 21);
            this.cmbEntryTypeHas.TabIndex  = 257;
            this.cmbEntryHas.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection objectCollections2 = this.cmbEntryHas.Items;
            objArray = new object[] { "has", "has not" };
            objectCollections2.AddRange(objArray);
            this.cmbEntryHas.Location     = new Point(48, 48);
            this.cmbEntryHas.Name         = "cmbEntryHas";
            this.cmbEntryHas.Size         = new System.Drawing.Size(64, 21);
            this.cmbEntryHas.TabIndex     = 256;
            this.cmbNameHas.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection items3 = this.cmbNameHas.Items;
            objArray = new object[] { "has", "has not" };
            items3.AddRange(objArray);
            this.cmbNameHas.Location          = new Point(48, 24);
            this.cmbNameHas.Name              = "cmbNameHas";
            this.cmbNameHas.Size              = new System.Drawing.Size(64, 21);
            this.cmbNameHas.TabIndex          = 255;
            this.txtSpawnerEntryType.Location = new Point(128, 96);
            this.txtSpawnerEntryType.Name     = "txtSpawnerEntryType";
            this.txtSpawnerEntryType.Size     = new System.Drawing.Size(152, 20);
            this.txtSpawnerEntryType.TabIndex = 253;
            this.txtSpawnerEntryType.Text     = "";
            this.label2.Location              = new Point(8, 96);
            this.label2.Name      = "label2";
            this.label2.Size      = new System.Drawing.Size(80, 16);
            this.label2.TabIndex  = 254;
            this.label2.Text      = "Entry Type:";
            this.label18.Location = new Point(280, 312);
            this.label18.Name     = "label18";
            this.label18.Size     = new System.Drawing.Size(48, 16);
            this.label18.TabIndex = 252;
            this.label18.Text     = "minutes";
            this.numAvgSpawnTime.DecimalPlaces = 1;
            this.numAvgSpawnTime.Location      = new Point(208, 312);
            NumericUpDown num = this.numAvgSpawnTime;

            int[] numArray = new int[] { 65535, 0, 0, 0 };
            num.Maximum = new decimal(numArray);
            this.numAvgSpawnTime.Name     = "numAvgSpawnTime";
            this.numAvgSpawnTime.Size     = new System.Drawing.Size(72, 20);
            this.numAvgSpawnTime.TabIndex = 251;
            NumericUpDown numericUpDown = this.numAvgSpawnTime;

            numArray            = new int[] { 10, 0, 0, 0 };
            numericUpDown.Value = new decimal(numArray);
            this.cmbAvgSpawnTime.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection objectCollections3 = this.cmbAvgSpawnTime.Items;
            objArray = new object[] { "less than", "greater than" };
            objectCollections3.AddRange(objArray);
            this.cmbAvgSpawnTime.Location = new Point(120, 312);
            this.cmbAvgSpawnTime.Name     = "cmbAvgSpawnTime";
            this.cmbAvgSpawnTime.Size     = new System.Drawing.Size(88, 21);
            this.cmbAvgSpawnTime.TabIndex = 249;
            this.chkAvgSpawnTime.Location = new Point(8, 312);
            this.chkAvgSpawnTime.Name     = "chkAvgSpawnTime";
            this.chkAvgSpawnTime.Size     = new System.Drawing.Size(112, 16);
            this.chkAvgSpawnTime.TabIndex = 250;
            this.chkAvgSpawnTime.Text     = "Avg. Spawn Time";
            this.label17.Location         = new Point(16, 288);
            this.label17.Name             = "label17";
            this.label17.Size             = new System.Drawing.Size(112, 16);
            this.label17.TabIndex         = 248;
            this.label17.Text             = "Running:";
            this.label17.TextAlign        = ContentAlignment.MiddleRight;
            this.cmbRunning.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection items4 = this.cmbRunning.Items;
            objArray = new object[] { "No Restriction", "Running Only", "Not Running" };
            items4.AddRange(objArray);
            this.cmbRunning.Location        = new Point(128, 288);
            this.cmbRunning.Name            = "cmbRunning";
            this.cmbRunning.Size            = new System.Drawing.Size(152, 21);
            this.cmbRunning.TabIndex        = 247;
            this.label16.Location           = new Point(16, 264);
            this.label16.Name               = "label16";
            this.label16.Size               = new System.Drawing.Size(112, 16);
            this.label16.TabIndex           = 246;
            this.label16.Text               = "ProximityTriggered:";
            this.label16.TextAlign          = ContentAlignment.MiddleRight;
            this.cmbProximity.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection objectCollections4 = this.cmbProximity.Items;
            objArray = new object[] { "No Restriction", "ProximityTriggered Only", "Not ProximityTriggered " };
            objectCollections4.AddRange(objArray);
            this.cmbProximity.Location       = new Point(128, 264);
            this.cmbProximity.Name           = "cmbProximity";
            this.cmbProximity.Size           = new System.Drawing.Size(152, 21);
            this.cmbProximity.TabIndex       = 245;
            this.chkNameCase.Location        = new Point(232, 24);
            this.chkNameCase.Name            = "chkNameCase";
            this.chkNameCase.Size            = new System.Drawing.Size(104, 16);
            this.chkNameCase.TabIndex        = 240;
            this.chkNameCase.Text            = "Case sensitive";
            this.chkEntryCase.Location       = new Point(232, 48);
            this.chkEntryCase.Name           = "chkEntryCase";
            this.chkEntryCase.Size           = new System.Drawing.Size(104, 16);
            this.chkEntryCase.TabIndex       = 241;
            this.chkEntryCase.Text           = "Case sensitive";
            this.label4.Location             = new Point(56, 240);
            this.label4.Name                 = "label4";
            this.label4.Size                 = new System.Drawing.Size(72, 16);
            this.label4.TabIndex             = 239;
            this.label4.Text                 = "InContainers:";
            this.label4.TextAlign            = ContentAlignment.MiddleRight;
            this.label3.Location             = new Point(16, 216);
            this.label3.Name                 = "label3";
            this.label3.Size                 = new System.Drawing.Size(112, 16);
            this.label3.TabIndex             = 238;
            this.label3.Text                 = "SequentialSpawning:";
            this.label3.TextAlign            = ContentAlignment.MiddleRight;
            this.label1.Location             = new Point(40, 192);
            this.label1.Name                 = "label1";
            this.label1.Size                 = new System.Drawing.Size(88, 16);
            this.label1.TabIndex             = 237;
            this.label1.Text                 = "SmartSpawning:";
            this.label1.TextAlign            = ContentAlignment.MiddleRight;
            this.cmbSequential.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection items5 = this.cmbSequential.Items;
            objArray = new object[] { "No Restriction", "Sequential Only", "Not Sequential" };
            items5.AddRange(objArray);
            this.cmbSequential.Location        = new Point(128, 216);
            this.cmbSequential.Name            = "cmbSequential";
            this.cmbSequential.Size            = new System.Drawing.Size(152, 21);
            this.cmbSequential.TabIndex        = 236;
            this.cmbInContainers.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection objectCollections5 = this.cmbInContainers.Items;
            objArray = new object[] { "No Restriction", "InContainer Only", "Not InContainer" };
            objectCollections5.AddRange(objArray);
            this.cmbInContainers.Location       = new Point(128, 240);
            this.cmbInContainers.Name           = "cmbInContainers";
            this.cmbInContainers.Size           = new System.Drawing.Size(152, 21);
            this.cmbInContainers.TabIndex       = 235;
            this.cmbSmartSpawning.DropDownStyle = ComboBoxStyle.DropDownList;
            ComboBox.ObjectCollection items6 = this.cmbSmartSpawning.Items;
            objArray = new object[] { "No Restriction", "SmartSpawned Only", "Not SmartSpawned" };
            items6.AddRange(objArray);
            this.cmbSmartSpawning.Location = new Point(128, 192);
            this.cmbSmartSpawning.Name     = "cmbSmartSpawning";
            this.cmbSmartSpawning.Size     = new System.Drawing.Size(152, 21);
            this.cmbSmartSpawning.TabIndex = 234;
            this.txtSpawnerEntry.Location  = new Point(112, 48);
            this.txtSpawnerEntry.Name      = "txtSpawnerEntry";
            this.txtSpawnerEntry.Size      = new System.Drawing.Size(112, 20);
            this.txtSpawnerEntry.TabIndex  = 232;
            this.txtSpawnerEntry.Text      = "";
            this.label38.Location          = new Point(8, 48);
            this.label38.Name            = "label38";
            this.label38.Size            = new System.Drawing.Size(40, 16);
            this.label38.TabIndex        = 233;
            this.label38.Text            = "Entry:";
            this.txtSpawnerName.Location = new Point(112, 24);
            this.txtSpawnerName.Name     = "txtSpawnerName";
            this.txtSpawnerName.Size     = new System.Drawing.Size(112, 20);
            this.txtSpawnerName.TabIndex = 230;
            this.txtSpawnerName.Text     = "";
            this.label30.Location        = new Point(8, 24);
            this.label30.Name            = "label30";
            this.label30.Size            = new System.Drawing.Size(40, 16);
            this.label30.TabIndex        = 231;
            this.label30.Text            = "Name:";
            this.btnClose.Location       = new Point(208, 448);
            this.btnClose.Name           = "btnClose";
            this.btnClose.Size           = new System.Drawing.Size(96, 24);
            this.btnClose.TabIndex       = 1;
            this.btnClose.Text           = "Close";
            this.btnClose.Click         += new EventHandler(this.btnClose_Click);
            this.btnApply.Location       = new Point(64, 448);
            this.btnApply.Name           = "btnApply";
            this.btnApply.Size           = new System.Drawing.Size(96, 24);
            this.btnApply.TabIndex       = 2;
            this.btnApply.Text           = "Apply";
            this.btnApply.Click         += new EventHandler(this.btnApply_Click);
            this.AutoScaleBaseSize       = new System.Drawing.Size(5, 13);
            base.ClientSize = new System.Drawing.Size(360, 480);
            base.ControlBox = false;
            base.Controls.Add(this.btnApply);
            base.Controls.Add(this.btnClose);
            base.Controls.Add(this.groupBox1);
            base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
            base.Name            = "SpawnerFilters";
            this.Text            = "Spawner Display Filter Settings";
            this.groupBox1.ResumeLayout(false);
            ((ISupportInitialize)this.numAvgSpawnTime).EndInit();
            base.ResumeLayout(false);
        }
        private void UpdateGame(Game game)
        {
            ComboBox.ObjectCollection p1charlist = PlayerOneComboBox.Items;
            ComboBox.ObjectCollection p2charlist = PlayerTwoComboBox.Items;

            //reset next-image-button
            nextImageButton.Enabled = true;
            //reset game label color
            GameLabel.ForeColor = Color.FromKnownColor(KnownColor.ControlText);

            #region fill char lists
            List <string> chars = new List <string>()
            {
                " "
            };
            List <string> p1chars = new List <string>();
            List <string> p2chars = new List <string>();

            switch (game)
            {
            case Game._:
            case Game._1943:
            case Game.Astyanax:
            case Game.Donkey_Kong:
            case Game.Double_Dragon:
            case Game.Frogger:
            case Game.Galaga_88:
            case Game.Galaxian:
            case Game.Gyruss:
            case Game.Metal_Slug:
            case Game.Pang:
            case Game.Puckman:
            case Game.Tetris:
            case Game.Space_Invaders_Part_II:
                break;

            case Game.Asterix:
                #region Asterix chars
                chars.AddRange(new string[]
                {
                    "Asterix",
                    "Obelix"
                });
                #endregion
                break;

            case Game.Bomberman:
                chars.AddRange(new[]
                {
                    "Atomic",
                    "Black",
                    "Blue",
                    "Cat",
                    "Fake",
                    "Gold",
                    "Hayate",
                    "Honey",
                    "Kotetu",
                    "Red",
                    "Rubber",
                    "White"
                });
                break;

            case Game.Contra:
                #region Contra chars
                p1chars.Add("Bill");
                p2chars.Add("Lance");
                #endregion
                break;

            case Game.Golden_Axe_The_Revenge_Of_Death_Adder:
                #region GATRODA chars
                chars.AddRange(new string[]
                {
                    "Dora",
                    "Goah",
                    "Sternblade",
                    "Trix"
                });
                #endregion
                break;

            case Game.Mario_Bros:
                #region MaBro chars
                p1chars.Add("Mario");
                p2chars.Add("Luigi");
                #endregion
                break;

            case Game.Marvel_Super_Heroes_vs_Street_Fighter:
                #region MaSHeVStreF chars
                chars.AddRange(new string[]
                {
                    "Akuma",
                    "Bison",
                    "Blackheart",
                    "Captain America",
                    "Chun-Li",
                    "Cyclops",
                    "Dan",
                    "Dhalsim",
                    "Hulk",
                    "Ken",
                    "Omega Red",
                    "Ryu",
                    "Sakura",
                    "Shuma-Gurath",
                    "Spiderman",
                    "Zangief"
                });
                #endregion
                break;

            case Game.Mortal_Kombat:
                #region MoKo chars
                #region playable
                chars.AddRange(new string[]
                {
                    "Cage",
                    "Kano",
                    "Liu Kang",
                    "Raiden",
                    "Scorpion",
                    "Sonya",
                    "Sub-Zero"
                });
                #endregion
                #region bosses
                p2chars.AddRange(new string[]
                {
                    "Goro",
                    "Shang Tsung"
                });
                #endregion
                #endregion
                break;

            case Game.Sega_Sonic_The_Hedgehog:
                #region SeSTHe chars
                chars.AddRange(new string[]
                {
                    "Mighty",
                    "Ray",
                    "Sonic"
                });
                #endregion
                break;

            case Game.Sonic_The_Hedgehog_II:
                #region SoTH2 chars
                p1chars.Add("Sonic");
                p2chars.Add("Tails");
                #endregion
                break;

            case Game.Street_Fighter_II_Champion_Edition:
                #region StreF2ChE chars
                chars.AddRange(new string[]
                {
                    "Balrog",
                    "Blanka",
                    "Chun Li",
                    "Dhalsim",
                    "E. Honda",
                    "Guile",
                    "Ken",
                    "M. Bison",
                    "Ryu",
                    "Sagat",
                    "Vega",
                    "Zangief"
                });
                #endregion
                break;

            case Game.Street_Fighter_III_New_Generation:
                #region StreF3NeG chars
                chars.AddRange(new string[]
                {
                    "Alex",
                    "Dudley",
                    "Elena",
                    "Ibuki",
                    "Ken",
                    "Necro",
                    "Oro",
                    "Ryu",
                    "Sean",
                    "Yun"
                });
                #endregion
                break;

            case Game.Super_Street_Fighter_II_The_New_Challenger:
            case Game.Super_Street_Fighter_II_Turbo:
                #region SuStreF2 chars
                chars.AddRange(new string[]
                {
                    "Balrog",
                    "Blanka",
                    "Cammy",
                    "Dee Jay",
                    "Chun Li",
                    "Dhalsim",
                    "E. Honda",
                    "Fei Long",
                    "Guile",
                    "Ken",
                    "M. Bison",
                    "Ryu",
                    "Sagat",
                    "T. Hawk",
                    "Vega",
                    "Zangief"
                });
                #endregion
                break;

            case Game.The_King_Of_Fighters_96:
                #region TheKOF96 chars
                #region playable
                chars.AddRange(new string[]
                {
                    "Andy Bogard",
                    "Athena Asamiya",
                    "Benimaru Nikaido",
                    "Chang Koehan",
                    "Chin Gentsai",
                    "Choi Bounge",
                    "Clark Still",
                    "Geese Howard",
                    "Goro Daimon",
                    "Iori Yagami",
                    "Joe Higashi",
                    "Kasumi Todoh",
                    "Kim Kaphwan",
                    "King",
                    "Kyo Kusanagi",
                    "Leona Heidern",
                    "Mai Shiranui",
                    "Mature",
                    "Mr. Big",
                    "Ralf Jones",
                    "Robert Garcia",
                    "Ryo Sakazaki",
                    "Sie Kensou",
                    "Terry Bogard",
                    "Vice",
                    "Wolfgang Krauser",
                    "Yuri Sakazaki"
                });
                #endregion
                #region bosses
                p2chars.AddRange(new string[]
                {
                    "Chizuru Kagura",
                    "Goenitz"
                });
                #endregion
                #endregion
                break;

            case Game.The_Punisher:
                #region TheP chars
                p1chars.Add("The Punisher");
                p2chars.Add("Nick Fury");
                #endregion
                break;

            default:
                //indicate the game hasn't been propperly implemented yet and prevent from labeling
                GameLabel.ForeColor     = Color.Red;
                nextImageButton.Enabled = false;
                break;
            }

            //remove the empty ones from the p1 and p2 exclusive lists
            #endregion
            #region actually update the combobox lists
            p1charlist.Clear();
            p1charlist.AddRange(chars.ToArray());
            p1charlist.AddRange(p1chars.ToArray());

            p2charlist.Clear();
            p2charlist.AddRange(chars.ToArray());
            p2charlist.AddRange(p2chars.ToArray());

            UpdatePlayers();
            #endregion
        }
示例#23
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(HelpLog));

            this.dataGridView_0 = new DataGridView();
            this.comboBox_0     = new ComboBox();
            this.comboBox_1     = new ComboBox();
            this.comboBox_2     = new ComboBox();
            this.comboBox_3     = new ComboBox();
            this.button_0       = new Button();
            ((ISupportInitialize)this.dataGridView_0).BeginInit();
            base.SuspendLayout();
            this.dataGridView_0.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.dataGridView_0.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView_0.Location           = new Point(12, 38);
            this.dataGridView_0.Name               = "dataGridView_0";
            this.dataGridView_0.RowTemplate.Height = 23;
            this.dataGridView_0.Size               = new System.Drawing.Size(598, 373);
            this.dataGridView_0.TabIndex           = 0;
            this.comboBox_0.FormattingEnabled      = true;
            this.comboBox_0.Location               = new Point(12, 12);
            this.comboBox_0.Name              = "comboBox_0";
            this.comboBox_0.Size              = new System.Drawing.Size(150, 20);
            this.comboBox_0.TabIndex          = 1;
            this.comboBox_1.DropDownWidth     = 300;
            this.comboBox_1.FormattingEnabled = true;
            ComboBox.ObjectCollection items = this.comboBox_1.Items;
            object[] objArray = new object[] { "EXID", Localization.Get("0 未知错误"), "", Localization.Get("21 FTP负载失败"), "", Localization.Get("101 子窗口冲突"), Localization.Get("102 检查子窗口冲突失败"), "", Localization.Get("120 对比最新章节失败"), Localization.Get("121 空章节"), Localization.Get("122 检查到重复章节"), Localization.Get("124 只采集文字章节时发现图片章节"), Localization.Get("125 设置不添加新书"), "", Localization.Get("130 限制章节字数小于多少字的章节不采集"), Localization.Get("131 章节数量小于限制"), Localization.Get("132 对比最新章节成功!但需要采集到章节数超限。"), Localization.Get("134 限制小说_黑名单"), Localization.Get("135 限制小说_不在白名单"), Localization.Get("136 过滤分卷名"), "", Localization.Get("200 小说信息页发生问题"), Localization.Get("210 小说目录页发生问题"), Localization.Get("214 章节组为空"), Localization.Get("220 小说内容页发生问题"), "", Localization.Get("410 操作本站小说列表发生问题"), Localization.Get("420 操作本站小说信息发生问题"), Localization.Get("430 操作本站章节列表发生问题"), Localization.Get("440 操作本站章节信息发生问题"), Localization.Get("441 InsertChapter发生问题"), Localization.Get("442 UpdateChapter发生问题") };
            items.AddRange(objArray);
            this.comboBox_1.Location          = new Point(168, 12);
            this.comboBox_1.Name              = "comboBox_1";
            this.comboBox_1.Size              = new System.Drawing.Size(50, 20);
            this.comboBox_1.TabIndex          = 2;
            this.comboBox_1.Text              = "EXID";
            this.comboBox_2.FormattingEnabled = true;
            ComboBox.ObjectCollection objectCollections = this.comboBox_2.Items;
            objArray = new object[] { Localization.Get("书名") };
            objectCollections.AddRange(objArray);
            this.comboBox_2.Location          = new Point(224, 12);
            this.comboBox_2.Name              = "comboBox_2";
            this.comboBox_2.Size              = new System.Drawing.Size(108, 20);
            this.comboBox_2.TabIndex          = 3;
            this.comboBox_2.Text              = Localization.Get("书名");
            this.comboBox_3.Anchor            = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.comboBox_3.FormattingEnabled = true;
            ComboBox.ObjectCollection items1 = this.comboBox_3.Items;
            objArray = new object[] { Localization.Get("提示信息") };
            items1.AddRange(objArray);
            this.comboBox_3.Location = new Point(338, 12);
            this.comboBox_3.Name     = "comboBox_3";
            this.comboBox_3.Size     = new System.Drawing.Size(191, 20);
            this.comboBox_3.TabIndex = 4;
            this.comboBox_3.Text     = Localization.Get("提示信息");
            this.button_0.Anchor     = AnchorStyles.Top | AnchorStyles.Right;
            this.button_0.Location   = new Point(535, 12);
            this.button_0.Name       = "button_0";
            this.button_0.Size       = new System.Drawing.Size(75, 20);
            this.button_0.TabIndex   = 5;
            this.button_0.Text       = Localization.Get("列出日志");
            this.button_0.UseVisualStyleBackColor = true;
            this.button_0.Click += new EventHandler(this.button_0_Click);
            base.AcceptButton    = this.button_0;
            base.ClientSize      = new System.Drawing.Size(622, 423);
            base.Controls.Add(this.button_0);
            base.Controls.Add(this.comboBox_3);
            base.Controls.Add(this.comboBox_2);
            base.Controls.Add(this.comboBox_1);
            base.Controls.Add(this.comboBox_0);
            base.Controls.Add(this.dataGridView_0);
            this.Font  = new System.Drawing.Font(Localization.Font, 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            base.Icon  = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.Name  = "HelpLog";
            this.Text  = Localization.Get("查看日志");
            base.Load += new EventHandler(this.HelpLog_Load);
            ((ISupportInitialize)this.dataGridView_0).EndInit();
            base.ResumeLayout(false);
        }
示例#24
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(RuleForm));

            this.listBox_0  = new ListBox();
            this.comboBox_0 = new ComboBox();
            this.textBox_0  = new TextBox();
            this.textBox_1  = new TextBox();
            this.comboBox_1 = new ComboBox();
            this.checkBox_0 = new CheckBox();
            this.button_0   = new Button();
            this.button_1   = new Button();
            this.button_2   = new Button();
            this.checkBox_1 = new CheckBox();
            this.toolTip_0  = new ToolTip(this.components);
            this.textBox_4  = new TextBox();
            this.textBox_5  = new TextBox();
            this.button_3   = new Button();
            this.textBox_2  = new TextBox();
            this.textBox_3  = new TextBox();
            this.groupBox_0 = new GroupBox();
            this.groupBox_1 = new GroupBox();
            this.groupBox_2 = new GroupBox();
            this.groupBox_0.SuspendLayout();
            this.groupBox_1.SuspendLayout();
            this.groupBox_2.SuspendLayout();
            base.SuspendLayout();
            this.listBox_0.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
            this.listBox_0.DrawMode          = DrawMode.OwnerDrawFixed;
            this.listBox_0.FormattingEnabled = true;
            this.listBox_0.ItemHeight        = 12;
            this.listBox_0.Location          = new Point(12, 38);
            this.listBox_0.Name                  = "listBox_0";
            this.listBox_0.Size                  = new System.Drawing.Size(200, 340);
            this.listBox_0.TabIndex              = 0;
            this.listBox_0.DrawItem             += new DrawItemEventHandler(this.listBox_0_DrawItem);
            this.listBox_0.SelectedIndexChanged += new EventHandler(this.listBox_0_SelectedIndexChanged);
            this.comboBox_0.FormattingEnabled    = true;
            this.comboBox_0.Location             = new Point(12, 12);
            this.comboBox_0.Name                 = "comboBox_0";
            this.comboBox_0.Size                 = new System.Drawing.Size(200, 20);
            this.comboBox_0.TabIndex             = 1;
            this.textBox_0.Anchor                = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.textBox_0.Location              = new Point(6, 42);
            this.textBox_0.Multiline             = true;
            this.textBox_0.Name                  = "textBox_0";
            this.textBox_0.ScrollBars            = ScrollBars.Vertical;
            this.textBox_0.Size                  = new System.Drawing.Size(458, 70);
            this.textBox_0.TabIndex              = 2;
            this.textBox_0.Text                  = Localization.Get("采集规则框");
            this.textBox_1.Anchor                = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.textBox_1.Location              = new Point(6, 20);
            this.textBox_1.Name                  = "textBox_1";
            this.textBox_1.ReadOnly              = true;
            this.textBox_1.Size                  = new System.Drawing.Size(458, 21);
            this.textBox_1.TabIndex              = 3;
            this.textBox_1.Text                  = Localization.Get("规则名称框");
            this.comboBox_1.Anchor               = AnchorStyles.Top | AnchorStyles.Right;
            this.comboBox_1.DropDownStyle        = ComboBoxStyle.DropDownList;
            this.comboBox_1.FormattingEnabled    = true;
            ComboBox.ObjectCollection items = this.comboBox_1.Items;
            object[] objArray = new object[] { "Url", "Match", "Matches", "Spilt", "Replace", "Other" };
            items.AddRange(objArray);
            this.comboBox_1.Location = new Point(346, 18);
            this.comboBox_1.Name     = "comboBox_1";
            this.comboBox_1.Size     = new System.Drawing.Size(118, 20);
            this.comboBox_1.TabIndex = 4;
            this.checkBox_0.AutoSize = true;
            this.checkBox_0.Location = new Point(6, 20);
            this.checkBox_0.Name     = "checkBox_0";
            this.checkBox_0.Size     = new System.Drawing.Size(96, 16);
            this.checkBox_0.TabIndex = 5;
            this.checkBox_0.Text     = Localization.Get("不区分大小写");
            this.toolTip_0.SetToolTip(this.checkBox_0, Localization.Get("指定不区分大小写的匹配"));
            this.checkBox_0.UseVisualStyleBackColor = true;
            this.button_0.Location = new Point(218, 12);
            this.button_0.Name     = "button_0";
            this.button_0.Size     = new System.Drawing.Size(75, 20);
            this.button_0.TabIndex = 7;
            this.button_0.Text     = Localization.Get("载入");
            this.button_0.UseVisualStyleBackColor = true;
            this.button_0.Click   += new EventHandler(this.button_0_Click);
            this.button_1.Enabled  = false;
            this.button_1.Location = new Point(299, 11);
            this.button_1.Name     = "button_1";
            this.button_1.Size     = new System.Drawing.Size(75, 20);
            this.button_1.TabIndex = 8;
            this.button_1.Text     = Localization.Get("保存");
            this.button_1.UseVisualStyleBackColor = true;
            this.button_1.Click   += new EventHandler(this.button_1_Click);
            this.button_2.Location = new Point(380, 12);
            this.button_2.Name     = "button_2";
            this.button_2.Size     = new System.Drawing.Size(75, 20);
            this.button_2.TabIndex = 9;
            this.button_2.Text     = Localization.Get("刷新");
            this.button_2.UseVisualStyleBackColor = true;
            this.button_2.Click     += new EventHandler(this.button_2_Click);
            this.checkBox_1.AutoSize = true;
            this.checkBox_1.Location = new Point(108, 20);
            this.checkBox_1.Name     = "checkBox_1";
            this.checkBox_1.Size     = new System.Drawing.Size(72, 16);
            this.checkBox_1.TabIndex = 10;
            this.checkBox_1.Text     = Localization.Get("单行模式");
            this.toolTip_0.SetToolTip(this.checkBox_1, Localization.Get("制定单行模式。使 . 匹配任意字符(包括换行字符)"));
            this.checkBox_1.UseVisualStyleBackColor = true;
            this.textBox_4.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            this.textBox_4.Location = new Point(472, 11);
            this.textBox_4.Name     = "textBox_4";
            this.textBox_4.Size     = new System.Drawing.Size(65, 21);
            this.textBox_4.TabIndex = 14;
            this.textBox_4.Text     = "0";
            this.toolTip_0.SetToolTip(this.textBox_4, Localization.Get("单本测试 - 小说ID"));
            this.textBox_5.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            this.textBox_5.Location = new Point(543, 11);
            this.textBox_5.Name     = "textBox_5";
            this.textBox_5.Size     = new System.Drawing.Size(65, 21);
            this.textBox_5.TabIndex = 16;
            this.textBox_5.Text     = "0";
            this.toolTip_0.SetToolTip(this.textBox_5, Localization.Get("单本测试 - 章节ID"));
            this.button_3.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            this.button_3.Location = new Point(613, 11);
            this.button_3.Name     = "button_3";
            this.button_3.Size     = new System.Drawing.Size(75, 20);
            this.button_3.TabIndex = 11;
            this.button_3.Text     = Localization.Get("测试规则");
            this.button_3.UseVisualStyleBackColor = true;
            this.button_3.Click      += new EventHandler(this.button_3_Click);
            this.textBox_2.Anchor     = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.textBox_2.Location   = new Point(6, 47);
            this.textBox_2.Multiline  = true;
            this.textBox_2.Name       = "textBox_2";
            this.textBox_2.ReadOnly   = true;
            this.textBox_2.ScrollBars = ScrollBars.Vertical;
            this.textBox_2.Size       = new System.Drawing.Size(458, 64);
            this.textBox_2.TabIndex   = 13;
            this.textBox_2.Text       = Localization.Get("规则说明框");
            this.textBox_3.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.textBox_3.Location   = new Point(6, 20);
            this.textBox_3.Multiline  = true;
            this.textBox_3.Name       = "textBox_3";
            this.textBox_3.ScrollBars = ScrollBars.Vertical;
            this.textBox_3.Size       = new System.Drawing.Size(458, 68);
            this.textBox_3.TabIndex   = 15;
            this.textBox_3.Text       = Localization.Get("替换规则框");
            this.groupBox_0.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.groupBox_0.Controls.Add(this.textBox_1);
            this.groupBox_0.Controls.Add(this.textBox_2);
            this.groupBox_0.Location = new Point(218, 38);
            this.groupBox_0.Name     = "groupBox_0";
            this.groupBox_0.Size     = new System.Drawing.Size(470, 117);
            this.groupBox_0.TabIndex = 16;
            this.groupBox_0.TabStop  = false;
            this.groupBox_0.Text     = Localization.Get("规则名称");
            this.groupBox_1.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.groupBox_1.Controls.Add(this.checkBox_0);
            this.groupBox_1.Controls.Add(this.comboBox_1);
            this.groupBox_1.Controls.Add(this.checkBox_1);
            this.groupBox_1.Controls.Add(this.textBox_0);
            this.groupBox_1.Location = new Point(218, 161);
            this.groupBox_1.Name     = "groupBox_1";
            this.groupBox_1.Size     = new System.Drawing.Size(470, 118);
            this.groupBox_1.TabIndex = 17;
            this.groupBox_1.TabStop  = false;
            this.groupBox_1.Text     = Localization.Get("采集规则");
            this.groupBox_2.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.groupBox_2.Controls.Add(this.textBox_3);
            this.groupBox_2.Location = new Point(218, 285);
            this.groupBox_2.Name     = "groupBox_2";
            this.groupBox_2.Size     = new System.Drawing.Size(470, 94);
            this.groupBox_2.TabIndex = 18;
            this.groupBox_2.TabStop  = false;
            this.groupBox_2.Text     = Localization.Get("替换规则");
            base.ClientSize          = new System.Drawing.Size(700, 390);
            base.Controls.Add(this.textBox_5);
            base.Controls.Add(this.groupBox_2);
            base.Controls.Add(this.textBox_4);
            base.Controls.Add(this.groupBox_1);
            base.Controls.Add(this.groupBox_0);
            base.Controls.Add(this.button_3);
            base.Controls.Add(this.button_2);
            base.Controls.Add(this.button_1);
            base.Controls.Add(this.button_0);
            base.Controls.Add(this.comboBox_0);
            base.Controls.Add(this.listBox_0);
            this.Font  = new System.Drawing.Font(Localization.Font, 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            base.Icon  = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.Name  = "RuleForm";
            this.Text  = Localization.Get("规则管理器");
            base.Load += new EventHandler(this.RuleForm_Load);
            this.groupBox_0.ResumeLayout(false);
            this.groupBox_0.PerformLayout();
            this.groupBox_1.ResumeLayout(false);
            this.groupBox_1.PerformLayout();
            this.groupBox_2.ResumeLayout(false);
            this.groupBox_2.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
        public EditZoneBoundsForm(ZoneData zone, SortedList <double, Level> levels, SortedList <double, Grid> gridsNorthSouth, SortedList <double, Grid> gridsEastWest, Units docUnits)
        {
            InitializeComponent();
            if (!string.IsNullOrWhiteSpace(zone.Name))
            {
                textBoxName.Text = zone.Name;
            }
            else
            {
                textBoxName.Text = "Zone";
            }
            m_Levels          = levels;
            m_GridsNorthSouth = gridsNorthSouth;
            m_GridsEastWest   = gridsEastWest;
            string[] array = (from l in m_Levels.Values
                              select l.get_Name()).ToArray();
            ComboBox[] array2 = new ComboBox[2]
            {
                comboBoxTopLevel,
                comboBoxBottomLevel
            };
            ComboBox[] array3 = array2;
            object[]   items2;
            foreach (ComboBox comboBox in array3)
            {
                ComboBox.ObjectCollection items = comboBox.Items;
                items2 = array;
                items.AddRange(items2);
            }
            ComboBox comboBox2 = comboBoxTopLevel;
            object   topLevel  = (object)zone.TopLevel;

            comboBox2.SelectedItem = (((topLevel != null) ? topLevel.get_Name() : null) ?? array.Last());
            ComboBox comboBox3 = comboBoxBottomLevel;
            object   baseLevel = (object)zone.BaseLevel;

            comboBox3.SelectedItem = (((baseLevel != null) ? baseLevel.get_Name() : null) ?? array.First());
            string[] array4 = (from g in m_GridsNorthSouth.Values
                               select g.get_Name()).ToArray();
            string[] array5 = (from g in m_GridsEastWest.Values
                               select g.get_Name()).ToArray();
            ComboBox.ObjectCollection items3 = comboBoxNorthGrid.Items;
            items2 = array5;
            items3.AddRange(items2);
            ComboBox.ObjectCollection items4 = comboBoxSouthGrid.Items;
            items2 = array5;
            items4.AddRange(items2);
            ComboBox.ObjectCollection items5 = comboBoxEastGrid.Items;
            items2 = array4;
            items5.AddRange(items2);
            ComboBox.ObjectCollection items6 = comboBoxWestGrid.Items;
            items2 = array4;
            items6.AddRange(items2);
            comboBoxNorthGrid.Items.Add("Origin");
            comboBoxSouthGrid.Items.Add("Origin");
            comboBoxEastGrid.Items.Add("Origin");
            comboBoxWestGrid.Items.Add("Origin");
            ComboBox comboBox4 = comboBoxNorthGrid;
            object   northGrid = (object)zone.NorthGrid;

            comboBox4.SelectedItem = (((northGrid != null) ? northGrid.get_Name() : null) ?? "Origin");
            ComboBox comboBox5 = comboBoxSouthGrid;
            object   southGrid = (object)zone.SouthGrid;

            comboBox5.SelectedItem = (((southGrid != null) ? southGrid.get_Name() : null) ?? "Origin");
            ComboBox comboBox6 = comboBoxEastGrid;
            object   eastGrid  = (object)zone.EastGrid;

            comboBox6.SelectedItem = (((eastGrid != null) ? eastGrid.get_Name() : null) ?? "Origin");
            ComboBox comboBox7 = comboBoxWestGrid;
            object   westGrid  = (object)zone.WestGrid;

            comboBox7.SelectedItem     = (((westGrid != null) ? westGrid.get_Name() : null) ?? "Origin");
            inputBoxTopOffset          = new FormattedInputBox(textBoxTopOffset, docUnits, 0);
            inputBoxBottomOffset       = new FormattedInputBox(textBoxBottomOffset, docUnits, 0);
            inputBoxNorthOffset        = new FormattedInputBox(textBoxNorthOffset, docUnits, 0);
            inputBoxSouthOffset        = new FormattedInputBox(textBoxSouthOffset, docUnits, 0);
            inputBoxEastOffset         = new FormattedInputBox(textBoxEastOffset, docUnits, 0);
            inputBoxWestOffset         = new FormattedInputBox(textBoxWestOffset, docUnits, 0);
            inputBoxTopOffset.Value    = zone.TopOffset;
            inputBoxBottomOffset.Value = zone.BaseOffset;
            inputBoxNorthOffset.Value  = zone.NorthOffset;
            inputBoxSouthOffset.Value  = zone.SouthOffset;
            inputBoxEastOffset.Value   = zone.EastOffset;
            inputBoxWestOffset.Value   = zone.WestOffset;
            textBoxName.SelectAll();
        }