Beispiel #1
0
        public void Init()
        {
            lstspe.Items.Clear();

            for (int i = 0; i < CComLibrary.GlobeVal.filesave.testedcount + 1; i++)
            {
                IP.Components.Toolbox.Item m = new IP.Components.Toolbox.Item();
                m.Text = (i + 1).ToString();
                lstspe.Items.Add(m);

                if (CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"] == null)
                {
                    CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"] = CComLibrary.TestStatus.Untested;
                }

                if (CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"] is System.DBNull)
                {
                    CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"] = CComLibrary.TestStatus.Untested;
                }

                m.Image = imageList2.Images[Convert.ToInt16(CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"])];
            }


            this.userControlResult1.InitGrid(1, true, true, CComLibrary.GlobeVal.filesave.mtablecol1, CComLibrary.GlobeVal.filesave.mtable1para,
                                             CComLibrary.GlobeVal.filesave.mtable1statistics);
        }
Beispiel #2
0
        public void lstspeRefresh()

        {
            lstspe.Items.Clear();

            for (int i = 0; i < CComLibrary.GlobeVal.filesave.testedcount + 1; i++)
            {
                IP.Components.Toolbox.Item m = new IP.Components.Toolbox.Item();
                m.Text = (i + 1).ToString();
                lstspe.Items.Add(m);



                if (CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"] is System.DBNull)
                {
                    CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"] = CComLibrary.TestStatus.Untested;
                }

                m.Image = imageList2.Images[Convert.ToInt16(CComLibrary.GlobeVal.filesave.dt.Rows[i]["试样状态"])];
            }
        }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UserControlTest));
     IP.Components.Toolbox.Item item1 = new IP.Components.Toolbox.Item();
     IP.Components.Toolbox.Item item2 = new IP.Components.Toolbox.Item();
     IP.Components.Toolbox.Item item3 = new IP.Components.Toolbox.Item();
     this.splitContainer1               = new System.Windows.Forms.SplitContainer();
     this.lstspe                        = new IP.Components.Toolbox(false);
     this.paneltestright                = new System.Windows.Forms.Panel();
     this.pictureBox1                   = new System.Windows.Forms.Panel();
     this.tableLayoutPanelback          = new System.Windows.Forms.TableLayoutPanel();
     this.paneltop                      = new System.Windows.Forms.Panel();
     this.tableLayoutPanelTop           = new System.Windows.Forms.TableLayoutPanel();
     this.tableLayoutPanel5             = new System.Windows.Forms.TableLayoutPanel();
     this.panel1                        = new System.Windows.Forms.Panel();
     this.btneafter                     = new TabHeaderDemo.ButtonEx(this.components);
     this.btnebefore                    = new TabHeaderDemo.ButtonEx(this.components);
     this.tableLayoutPanel4             = new System.Windows.Forms.TableLayoutPanel();
     this.panel2                        = new System.Windows.Forms.Panel();
     this.panel4                        = new System.Windows.Forms.Panel();
     this.btnstep2                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.imageList1                    = new System.Windows.Forms.ImageList(this.components);
     this.btnstep7                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnstep6                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnstep5                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnstep4                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnstep3                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnstep1                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.panel5                        = new System.Windows.Forms.Panel();
     this.panel7                        = new System.Windows.Forms.Panel();
     this.tableLayoutPanel9             = new System.Windows.Forms.TableLayoutPanel();
     this.btnStart                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnend                        = new TabHeaderDemo.ButtonExNew(this.components);
     this.buttonEx14                    = new TabHeaderDemo.ButtonExNew(this.components);
     this.button8                       = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnfinish                     = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnsave                       = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnsaveas                     = new TabHeaderDemo.ButtonExNew(this.components);
     this.btnprint                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.panel8                        = new System.Windows.Forms.Panel();
     this.paneltest                     = new System.Windows.Forms.Panel();
     this.panel3                        = new System.Windows.Forms.Panel();
     this.tableLayoutPanel2             = new System.Windows.Forms.TableLayoutPanel();
     this.button21                      = new TabHeaderDemo.ButtonExNew(this.components);
     this.button6                       = new TabHeaderDemo.ButtonExNew(this.components);
     this.panel6                        = new System.Windows.Forms.Panel();
     this.tableLayoutPanel8             = new System.Windows.Forms.TableLayoutPanel();
     this.buttonEx1                     = new TabHeaderDemo.ButtonExNew(this.components);
     this.buttonEx2                     = new TabHeaderDemo.ButtonExNew(this.components);
     this.imageList3                    = new System.Windows.Forms.ImageList(this.components);
     this.imageList2                    = new System.Windows.Forms.ImageList(this.components);
     this.imageList4                    = new System.Windows.Forms.ImageList(this.components);
     this.timer1                        = new System.Windows.Forms.Timer(this.components);
     this.timermain                     = new System.Windows.Forms.Timer(this.components);
     this.contextMenuStrip1             = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.重新计算当前试样ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.重新计算全部试样ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.原始数据导出为ExcelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.button7                       = new TabHeaderDemo.ButtonExNew(this.components);
     this.buttonEx3                     = new TabHeaderDemo.ButtonExNew(this.components);
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.pictureBox1.SuspendLayout();
     this.tableLayoutPanelback.SuspendLayout();
     this.paneltop.SuspendLayout();
     this.tableLayoutPanelTop.SuspendLayout();
     this.tableLayoutPanel5.SuspendLayout();
     this.panel1.SuspendLayout();
     this.tableLayoutPanel4.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel5.SuspendLayout();
     this.panel7.SuspendLayout();
     this.tableLayoutPanel9.SuspendLayout();
     this.panel8.SuspendLayout();
     this.paneltest.SuspendLayout();
     this.tableLayoutPanel2.SuspendLayout();
     this.tableLayoutPanel8.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     resources.ApplyResources(this.splitContainer1, "splitContainer1");
     this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.Name       = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     resources.ApplyResources(this.splitContainer1.Panel1, "splitContainer1.Panel1");
     this.splitContainer1.Panel1.Controls.Add(this.lstspe);
     //
     // splitContainer1.Panel2
     //
     resources.ApplyResources(this.splitContainer1.Panel2, "splitContainer1.Panel2");
     this.splitContainer1.Panel2.Controls.Add(this.paneltestright);
     //
     // lstspe
     //
     resources.ApplyResources(this.lstspe, "lstspe");
     this.lstspe.AllowDrop         = true;
     this.lstspe.AllowToolboxItems = true;
     this.lstspe.BorderStyle       = System.Windows.Forms.BorderStyle.FixedSingle;
     item1.Image   = ((System.Drawing.Image)(resources.GetObject("item1.Image")));
     item1.Tag     = null;
     item1.Text    = "试样1";
     item1.Tooltip = "试样1";
     item2.Image   = ((System.Drawing.Image)(resources.GetObject("item2.Image")));
     item2.Tag     = null;
     item2.Text    = "试样2";
     item2.Tooltip = "试样2";
     item3.Image   = ((System.Drawing.Image)(resources.GetObject("item3.Image")));
     item3.Tag     = null;
     item3.Text    = "试样3";
     item3.Tooltip = "Item";
     this.lstspe.Items.AddRange(new IP.Components.Toolbox.Item[] {
         item1,
         item2,
         item3
     });
     this.lstspe.Name                     = "lstspe";
     this.lstspe.ShowPointer              = false;
     this.lstspe.ContextMenuStripChanged += new System.EventHandler(this.lstspe_ContextMenuStripChanged);
     this.lstspe.Click                   += new System.EventHandler(this.lstspe_Click_1);
     //
     // paneltestright
     //
     resources.ApplyResources(this.paneltestright, "paneltestright");
     this.paneltestright.BackColor = System.Drawing.SystemColors.ButtonFace;
     this.paneltestright.Name      = "paneltestright";
     //
     // pictureBox1
     //
     resources.ApplyResources(this.pictureBox1, "pictureBox1");
     this.pictureBox1.BackColor = System.Drawing.Color.Gray;
     this.pictureBox1.Controls.Add(this.tableLayoutPanelback);
     this.pictureBox1.Name   = "pictureBox1";
     this.pictureBox1.Paint += new System.Windows.Forms.PaintEventHandler(this.pictureBox1_Paint);
     //
     // tableLayoutPanelback
     //
     resources.ApplyResources(this.tableLayoutPanelback, "tableLayoutPanelback");
     this.tableLayoutPanelback.BackColor = System.Drawing.Color.Transparent;
     this.tableLayoutPanelback.Controls.Add(this.paneltop, 1, 1);
     this.tableLayoutPanelback.Controls.Add(this.panel5, 2, 2);
     this.tableLayoutPanelback.Controls.Add(this.panel8, 1, 2);
     this.tableLayoutPanelback.Name    = "tableLayoutPanelback";
     this.tableLayoutPanelback.Resize += new System.EventHandler(this.tableLayoutPanelback_Resize);
     //
     // paneltop
     //
     resources.ApplyResources(this.paneltop, "paneltop");
     this.paneltop.BackColor = System.Drawing.SystemColors.Control;
     this.paneltop.Controls.Add(this.tableLayoutPanelTop);
     this.paneltop.Name = "paneltop";
     //
     // tableLayoutPanelTop
     //
     resources.ApplyResources(this.tableLayoutPanelTop, "tableLayoutPanelTop");
     this.tableLayoutPanelTop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(225)))), ((int)(((byte)(208)))));
     this.tableLayoutPanelTop.Controls.Add(this.tableLayoutPanel5, 0, 0);
     this.tableLayoutPanelTop.Controls.Add(this.tableLayoutPanel4, 0, 0);
     this.tableLayoutPanelTop.Name = "tableLayoutPanelTop";
     //
     // tableLayoutPanel5
     //
     resources.ApplyResources(this.tableLayoutPanel5, "tableLayoutPanel5");
     this.tableLayoutPanel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(225)))), ((int)(((byte)(208)))));
     this.tableLayoutPanel5.Controls.Add(this.panel1, 1, 0);
     this.tableLayoutPanel5.Name = "tableLayoutPanel5";
     //
     // panel1
     //
     resources.ApplyResources(this.panel1, "panel1");
     this.panel1.Controls.Add(this.btneafter);
     this.panel1.Controls.Add(this.btnebefore);
     this.panel1.Name = "panel1";
     //
     // btneafter
     //
     resources.ApplyResources(this.btneafter, "btneafter");
     this.btneafter.BackColor = System.Drawing.Color.Transparent;
     this.btneafter.FlatAppearance.BorderSize         = 0;
     this.btneafter.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btneafter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btneafter.ForeColor               = System.Drawing.Color.Navy;
     this.btneafter.Name                    = "btneafter";
     this.btneafter.NormalDisabledImage     = ((System.Drawing.Image)(resources.GetObject("btneafter.NormalDisabledImage")));
     this.btneafter.NormalEnterImage        = ((System.Drawing.Image)(resources.GetObject("btneafter.NormalEnterImage")));
     this.btneafter.UseMnemonic             = false;
     this.btneafter.UseVisualStyleBackColor = false;
     this.btneafter.Click                  += new System.EventHandler(this.btneafter_Click);
     //
     // btnebefore
     //
     resources.ApplyResources(this.btnebefore, "btnebefore");
     this.btnebefore.BackColor = System.Drawing.Color.Transparent;
     this.btnebefore.FlatAppearance.BorderSize         = 0;
     this.btnebefore.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnebefore.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnebefore.ForeColor               = System.Drawing.Color.Navy;
     this.btnebefore.Name                    = "btnebefore";
     this.btnebefore.NormalDisabledImage     = ((System.Drawing.Image)(resources.GetObject("btnebefore.NormalDisabledImage")));
     this.btnebefore.NormalEnterImage        = ((System.Drawing.Image)(resources.GetObject("btnebefore.NormalEnterImage")));
     this.btnebefore.UseMnemonic             = false;
     this.btnebefore.UseVisualStyleBackColor = false;
     this.btnebefore.Click                  += new System.EventHandler(this.btnebefore_Click);
     //
     // tableLayoutPanel4
     //
     resources.ApplyResources(this.tableLayoutPanel4, "tableLayoutPanel4");
     this.tableLayoutPanel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(225)))), ((int)(((byte)(208)))));
     this.tableLayoutPanel4.Controls.Add(this.panel2, 1, 0);
     this.tableLayoutPanel4.Name = "tableLayoutPanel4";
     //
     // panel2
     //
     resources.ApplyResources(this.panel2, "panel2");
     this.panel2.Controls.Add(this.panel4);
     this.panel2.Name = "panel2";
     //
     // panel4
     //
     resources.ApplyResources(this.panel4, "panel4");
     this.panel4.Controls.Add(this.btnstep2);
     this.panel4.Controls.Add(this.btnstep7);
     this.panel4.Controls.Add(this.btnstep6);
     this.panel4.Controls.Add(this.btnstep5);
     this.panel4.Controls.Add(this.btnstep4);
     this.panel4.Controls.Add(this.btnstep3);
     this.panel4.Controls.Add(this.btnstep1);
     this.panel4.Name = "panel4";
     //
     // btnstep2
     //
     resources.ApplyResources(this.btnstep2, "btnstep2");
     this.btnstep2.BackColor = System.Drawing.Color.Transparent;
     this.btnstep2.FlatAppearance.BorderSize         = 0;
     this.btnstep2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnstep2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnstep2.ForeColor               = System.Drawing.Color.White;
     this.btnstep2.ImageList               = this.imageList1;
     this.btnstep2.Name                    = "btnstep2";
     this.btnstep2.UseMnemonic             = false;
     this.btnstep2.UseVisualStyleBackColor = false;
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "开始前2.ico");
     this.imageList1.Images.SetKeyName(1, "开始前3.ico");
     this.imageList1.Images.SetKeyName(2, "开始前4.ico");
     this.imageList1.Images.SetKeyName(3, "试样试验前1.ico");
     this.imageList1.Images.SetKeyName(4, "试样试验前2.ico");
     this.imageList1.Images.SetKeyName(5, "试样试验前3.ico");
     this.imageList1.Images.SetKeyName(6, "试验前1.ico");
     this.imageList1.Images.SetKeyName(7, "试验前2.ico");
     this.imageList1.Images.SetKeyName(8, "试验前3.ico");
     this.imageList1.Images.SetKeyName(9, "计算前1.ico");
     this.imageList1.Images.SetKeyName(10, "计算前2.ico");
     this.imageList1.Images.SetKeyName(11, "计算前3.ico");
     this.imageList1.Images.SetKeyName(12, "结束时1.ico");
     this.imageList1.Images.SetKeyName(13, "结束时2.ico");
     this.imageList1.Images.SetKeyName(14, "结束时3.ico");
     this.imageList1.Images.SetKeyName(15, "保存2.ico");
     this.imageList1.Images.SetKeyName(16, "保存2.ico");
     this.imageList1.Images.SetKeyName(17, "保存1.ico");
     this.imageList1.Images.SetKeyName(18, "试样试验后1.ico");
     this.imageList1.Images.SetKeyName(19, "试样试验后2.ico");
     this.imageList1.Images.SetKeyName(20, "试样试验后3.ico");
     this.imageList1.Images.SetKeyName(21, "试验前4.ico");
     this.imageList1.Images.SetKeyName(22, "计算前4.ico");
     //
     // btnstep7
     //
     resources.ApplyResources(this.btnstep7, "btnstep7");
     this.btnstep7.BackColor = System.Drawing.Color.Transparent;
     this.btnstep7.FlatAppearance.BorderSize         = 0;
     this.btnstep7.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnstep7.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnstep7.ForeColor               = System.Drawing.Color.White;
     this.btnstep7.ImageList               = this.imageList1;
     this.btnstep7.Name                    = "btnstep7";
     this.btnstep7.UseMnemonic             = false;
     this.btnstep7.UseVisualStyleBackColor = false;
     //
     // btnstep6
     //
     resources.ApplyResources(this.btnstep6, "btnstep6");
     this.btnstep6.BackColor = System.Drawing.Color.Transparent;
     this.btnstep6.FlatAppearance.BorderSize         = 0;
     this.btnstep6.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnstep6.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnstep6.ForeColor               = System.Drawing.Color.White;
     this.btnstep6.ImageList               = this.imageList1;
     this.btnstep6.Name                    = "btnstep6";
     this.btnstep6.UseMnemonic             = false;
     this.btnstep6.UseVisualStyleBackColor = false;
     //
     // btnstep5
     //
     resources.ApplyResources(this.btnstep5, "btnstep5");
     this.btnstep5.BackColor = System.Drawing.Color.Transparent;
     this.btnstep5.FlatAppearance.BorderSize         = 0;
     this.btnstep5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnstep5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnstep5.ForeColor               = System.Drawing.Color.White;
     this.btnstep5.ImageList               = this.imageList1;
     this.btnstep5.Name                    = "btnstep5";
     this.btnstep5.UseMnemonic             = false;
     this.btnstep5.UseVisualStyleBackColor = false;
     //
     // btnstep4
     //
     resources.ApplyResources(this.btnstep4, "btnstep4");
     this.btnstep4.BackColor = System.Drawing.Color.Transparent;
     this.btnstep4.FlatAppearance.BorderSize         = 0;
     this.btnstep4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnstep4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnstep4.ForeColor               = System.Drawing.Color.White;
     this.btnstep4.ImageList               = this.imageList1;
     this.btnstep4.Name                    = "btnstep4";
     this.btnstep4.UseMnemonic             = false;
     this.btnstep4.UseVisualStyleBackColor = false;
     //
     // btnstep3
     //
     resources.ApplyResources(this.btnstep3, "btnstep3");
     this.btnstep3.BackColor = System.Drawing.Color.Transparent;
     this.btnstep3.FlatAppearance.BorderSize         = 0;
     this.btnstep3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnstep3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnstep3.ForeColor               = System.Drawing.Color.White;
     this.btnstep3.ImageList               = this.imageList1;
     this.btnstep3.Name                    = "btnstep3";
     this.btnstep3.UseMnemonic             = false;
     this.btnstep3.UseVisualStyleBackColor = false;
     //
     // btnstep1
     //
     resources.ApplyResources(this.btnstep1, "btnstep1");
     this.btnstep1.BackColor = System.Drawing.Color.Transparent;
     this.btnstep1.FlatAppearance.BorderSize         = 0;
     this.btnstep1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnstep1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnstep1.ForeColor               = System.Drawing.Color.White;
     this.btnstep1.ImageList               = this.imageList1;
     this.btnstep1.Name                    = "btnstep1";
     this.btnstep1.UseMnemonic             = false;
     this.btnstep1.UseVisualStyleBackColor = false;
     //
     // panel5
     //
     resources.ApplyResources(this.panel5, "panel5");
     this.panel5.Controls.Add(this.panel7);
     this.panel5.Name = "panel5";
     //
     // panel7
     //
     resources.ApplyResources(this.panel7, "panel7");
     this.panel7.BackColor = System.Drawing.Color.Transparent;
     this.panel7.Controls.Add(this.tableLayoutPanel9);
     this.panel7.Name = "panel7";
     //
     // tableLayoutPanel9
     //
     resources.ApplyResources(this.tableLayoutPanel9, "tableLayoutPanel9");
     this.tableLayoutPanel9.Controls.Add(this.btnStart, 0, 0);
     this.tableLayoutPanel9.Controls.Add(this.btnend, 0, 1);
     this.tableLayoutPanel9.Controls.Add(this.buttonEx14, 0, 2);
     this.tableLayoutPanel9.Controls.Add(this.button8, 0, 3);
     this.tableLayoutPanel9.Controls.Add(this.btnfinish, 0, 4);
     this.tableLayoutPanel9.Controls.Add(this.btnsave, 0, 5);
     this.tableLayoutPanel9.Controls.Add(this.btnsaveas, 0, 6);
     this.tableLayoutPanel9.Controls.Add(this.btnprint, 0, 7);
     this.tableLayoutPanel9.Name   = "tableLayoutPanel9";
     this.tableLayoutPanel9.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel9_Paint);
     //
     // btnStart
     //
     resources.ApplyResources(this.btnStart, "btnStart");
     this.btnStart.BackColor = System.Drawing.Color.Transparent;
     this.btnStart.FlatAppearance.BorderSize         = 0;
     this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnStart.ForeColor               = System.Drawing.Color.White;
     this.btnStart.Name                    = "btnStart";
     this.btnStart.UseMnemonic             = false;
     this.btnStart.UseVisualStyleBackColor = false;
     this.btnStart.Click                  += new System.EventHandler(this.btnStart_Click);
     //
     // btnend
     //
     resources.ApplyResources(this.btnend, "btnend");
     this.btnend.BackColor = System.Drawing.Color.Transparent;
     this.btnend.FlatAppearance.BorderSize         = 0;
     this.btnend.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnend.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnend.ForeColor               = System.Drawing.Color.White;
     this.btnend.Name                    = "btnend";
     this.btnend.UseMnemonic             = false;
     this.btnend.UseVisualStyleBackColor = false;
     this.btnend.Click                  += new System.EventHandler(this.btnend_Click);
     //
     // buttonEx14
     //
     resources.ApplyResources(this.buttonEx14, "buttonEx14");
     this.buttonEx14.BackColor = System.Drawing.Color.Transparent;
     this.buttonEx14.FlatAppearance.BorderSize         = 0;
     this.buttonEx14.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.buttonEx14.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.buttonEx14.ForeColor               = System.Drawing.Color.White;
     this.buttonEx14.Name                    = "buttonEx14";
     this.buttonEx14.UseMnemonic             = false;
     this.buttonEx14.UseVisualStyleBackColor = false;
     //
     // button8
     //
     resources.ApplyResources(this.button8, "button8");
     this.button8.BackColor = System.Drawing.Color.Transparent;
     this.button8.FlatAppearance.BorderSize         = 0;
     this.button8.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.button8.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.button8.ForeColor               = System.Drawing.Color.White;
     this.button8.Name                    = "button8";
     this.button8.UseMnemonic             = false;
     this.button8.UseVisualStyleBackColor = false;
     this.button8.Click                  += new System.EventHandler(this.button8_Click);
     //
     // btnfinish
     //
     resources.ApplyResources(this.btnfinish, "btnfinish");
     this.btnfinish.BackColor = System.Drawing.Color.Transparent;
     this.btnfinish.FlatAppearance.BorderSize         = 0;
     this.btnfinish.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnfinish.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnfinish.ForeColor               = System.Drawing.Color.White;
     this.btnfinish.Name                    = "btnfinish";
     this.btnfinish.UseMnemonic             = false;
     this.btnfinish.UseVisualStyleBackColor = false;
     this.btnfinish.Click                  += new System.EventHandler(this.btnfinish_Click);
     //
     // btnsave
     //
     resources.ApplyResources(this.btnsave, "btnsave");
     this.btnsave.BackColor = System.Drawing.Color.Transparent;
     this.btnsave.FlatAppearance.BorderSize         = 0;
     this.btnsave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnsave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnsave.ForeColor               = System.Drawing.Color.White;
     this.btnsave.Name                    = "btnsave";
     this.btnsave.UseMnemonic             = false;
     this.btnsave.UseVisualStyleBackColor = false;
     this.btnsave.Click                  += new System.EventHandler(this.btnsave_Click);
     //
     // btnsaveas
     //
     resources.ApplyResources(this.btnsaveas, "btnsaveas");
     this.btnsaveas.BackColor = System.Drawing.Color.Transparent;
     this.btnsaveas.FlatAppearance.BorderSize         = 0;
     this.btnsaveas.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnsaveas.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnsaveas.ForeColor               = System.Drawing.Color.White;
     this.btnsaveas.Name                    = "btnsaveas";
     this.btnsaveas.UseMnemonic             = false;
     this.btnsaveas.UseVisualStyleBackColor = false;
     this.btnsaveas.Click                  += new System.EventHandler(this.btnsaveas_Click);
     //
     // btnprint
     //
     resources.ApplyResources(this.btnprint, "btnprint");
     this.btnprint.BackColor = System.Drawing.Color.Transparent;
     this.btnprint.FlatAppearance.BorderSize         = 0;
     this.btnprint.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnprint.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnprint.ForeColor               = System.Drawing.Color.White;
     this.btnprint.Name                    = "btnprint";
     this.btnprint.UseMnemonic             = false;
     this.btnprint.UseVisualStyleBackColor = false;
     this.btnprint.Click                  += new System.EventHandler(this.btnprint_Click);
     //
     // panel8
     //
     resources.ApplyResources(this.panel8, "panel8");
     this.panel8.BackColor = System.Drawing.SystemColors.ButtonFace;
     this.panel8.Controls.Add(this.paneltest);
     this.panel8.Name = "panel8";
     //
     // paneltest
     //
     resources.ApplyResources(this.paneltest, "paneltest");
     this.paneltest.Controls.Add(this.splitContainer1);
     this.paneltest.Name = "paneltest";
     //
     // panel3
     //
     resources.ApplyResources(this.panel3, "panel3");
     this.panel3.BackColor = System.Drawing.Color.Transparent;
     this.panel3.Name      = "panel3";
     //
     // tableLayoutPanel2
     //
     resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2");
     this.tableLayoutPanel2.Controls.Add(this.button21, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.button6, 0, 1);
     this.tableLayoutPanel2.Name = "tableLayoutPanel2";
     //
     // button21
     //
     resources.ApplyResources(this.button21, "button21");
     this.button21.BackColor = System.Drawing.Color.Transparent;
     this.button21.FlatAppearance.BorderSize         = 0;
     this.button21.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.button21.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.button21.ForeColor               = System.Drawing.Color.White;
     this.button21.Name                    = "button21";
     this.button21.UseMnemonic             = false;
     this.button21.UseVisualStyleBackColor = false;
     //
     // button6
     //
     resources.ApplyResources(this.button6, "button6");
     this.button6.BackColor = System.Drawing.Color.Transparent;
     this.button6.FlatAppearance.BorderSize         = 0;
     this.button6.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.button6.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.button6.ForeColor               = System.Drawing.Color.White;
     this.button6.Name                    = "button6";
     this.button6.UseMnemonic             = false;
     this.button6.UseVisualStyleBackColor = false;
     //
     // panel6
     //
     resources.ApplyResources(this.panel6, "panel6");
     this.panel6.BackColor = System.Drawing.Color.Transparent;
     this.panel6.Name      = "panel6";
     //
     // tableLayoutPanel8
     //
     resources.ApplyResources(this.tableLayoutPanel8, "tableLayoutPanel8");
     this.tableLayoutPanel8.Controls.Add(this.buttonEx1, 0, 0);
     this.tableLayoutPanel8.Controls.Add(this.buttonEx2, 0, 1);
     this.tableLayoutPanel8.Name = "tableLayoutPanel8";
     //
     // buttonEx1
     //
     resources.ApplyResources(this.buttonEx1, "buttonEx1");
     this.buttonEx1.BackColor = System.Drawing.Color.Transparent;
     this.buttonEx1.FlatAppearance.BorderSize         = 0;
     this.buttonEx1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.buttonEx1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.buttonEx1.ForeColor               = System.Drawing.Color.White;
     this.buttonEx1.Name                    = "buttonEx1";
     this.buttonEx1.UseMnemonic             = false;
     this.buttonEx1.UseVisualStyleBackColor = false;
     //
     // buttonEx2
     //
     resources.ApplyResources(this.buttonEx2, "buttonEx2");
     this.buttonEx2.BackColor = System.Drawing.Color.Transparent;
     this.buttonEx2.FlatAppearance.BorderSize         = 0;
     this.buttonEx2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.buttonEx2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.buttonEx2.ForeColor               = System.Drawing.Color.White;
     this.buttonEx2.Name                    = "buttonEx2";
     this.buttonEx2.UseMnemonic             = false;
     this.buttonEx2.UseVisualStyleBackColor = false;
     //
     // imageList3
     //
     this.imageList3.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList3.ImageStream")));
     this.imageList3.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList3.Images.SetKeyName(0, "3.ico");
     //
     // imageList2
     //
     this.imageList2.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream")));
     this.imageList2.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList2.Images.SetKeyName(0, "Selector_Status_Ready_For_Test.ico");
     this.imageList2.Images.SetKeyName(1, "Selector_Status_Tested.ico");
     this.imageList2.Images.SetKeyName(2, "Selector_Status_Tested_Rejected.ico");
     this.imageList2.Images.SetKeyName(3, "Selector_Status_Tested.bmp");
     this.imageList2.Images.SetKeyName(4, "Selector_Status_Testing.ico");
     //
     // imageList4
     //
     this.imageList4.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList4.ImageStream")));
     this.imageList4.TransparentColor = System.Drawing.Color.White;
     this.imageList4.Images.SetKeyName(0, "50.ico");
     this.imageList4.Images.SetKeyName(1, "50-1.ico");
     this.imageList4.Images.SetKeyName(2, "r2-2.ico");
     this.imageList4.Images.SetKeyName(3, "r2.ico");
     //
     // timer1
     //
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // timermain
     //
     this.timermain.Tick += new System.EventHandler(this.timermain_Tick);
     //
     // contextMenuStrip1
     //
     resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.重新计算当前试样ToolStripMenuItem,
         this.重新计算全部试样ToolStripMenuItem,
         this.原始数据导出为ExcelToolStripMenuItem
     });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     //
     // 重新计算当前试样ToolStripMenuItem
     //
     resources.ApplyResources(this.重新计算当前试样ToolStripMenuItem, "重新计算当前试样ToolStripMenuItem");
     this.重新计算当前试样ToolStripMenuItem.Name   = "重新计算当前试样ToolStripMenuItem";
     this.重新计算当前试样ToolStripMenuItem.Click += new System.EventHandler(this.重新计算当前试样ToolStripMenuItem_Click);
     //
     // 重新计算全部试样ToolStripMenuItem
     //
     resources.ApplyResources(this.重新计算全部试样ToolStripMenuItem, "重新计算全部试样ToolStripMenuItem");
     this.重新计算全部试样ToolStripMenuItem.Name = "重新计算全部试样ToolStripMenuItem";
     //
     // 原始数据导出为ExcelToolStripMenuItem
     //
     resources.ApplyResources(this.原始数据导出为ExcelToolStripMenuItem, "原始数据导出为ExcelToolStripMenuItem");
     this.原始数据导出为ExcelToolStripMenuItem.Name   = "原始数据导出为ExcelToolStripMenuItem";
     this.原始数据导出为ExcelToolStripMenuItem.Click += new System.EventHandler(this.试验数据导出为ExcelToolStripMenuItem_Click);
     //
     // button7
     //
     resources.ApplyResources(this.button7, "button7");
     this.button7.BackColor = System.Drawing.Color.Transparent;
     this.button7.FlatAppearance.BorderSize         = 0;
     this.button7.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.button7.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.button7.ForeColor               = System.Drawing.Color.White;
     this.button7.Name                    = "button7";
     this.button7.UseMnemonic             = false;
     this.button7.UseVisualStyleBackColor = false;
     //
     // buttonEx3
     //
     resources.ApplyResources(this.buttonEx3, "buttonEx3");
     this.buttonEx3.BackColor = System.Drawing.Color.Transparent;
     this.buttonEx3.FlatAppearance.BorderSize         = 0;
     this.buttonEx3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.buttonEx3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.buttonEx3.ForeColor               = System.Drawing.Color.White;
     this.buttonEx3.Name                    = "buttonEx3";
     this.buttonEx3.UseMnemonic             = false;
     this.buttonEx3.UseVisualStyleBackColor = false;
     //
     // UserControlTest
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor     = System.Drawing.Color.Transparent;
     this.Controls.Add(this.pictureBox1);
     this.DoubleBuffered = true;
     this.Name           = "UserControlTest";
     this.Load          += new System.EventHandler(this.UserControlTest_Load);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.pictureBox1.ResumeLayout(false);
     this.tableLayoutPanelback.ResumeLayout(false);
     this.paneltop.ResumeLayout(false);
     this.tableLayoutPanelTop.ResumeLayout(false);
     this.tableLayoutPanel5.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.tableLayoutPanel4.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel5.ResumeLayout(false);
     this.panel7.ResumeLayout(false);
     this.tableLayoutPanel9.ResumeLayout(false);
     this.panel8.ResumeLayout(false);
     this.panel8.PerformLayout();
     this.paneltest.ResumeLayout(false);
     this.tableLayoutPanel2.ResumeLayout(false);
     this.tableLayoutPanel8.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Beispiel #4
0
        public void Init()
        {
            listView1.Columns.Clear();
            listView1.Columns.Add("主机");
            listView1.Columns[0].Width = 40;

            listView1.Columns.Add("类型");
            listView1.Columns[1].Width = 100;
            listView1.Columns.Add("状态");

            listView1.Columns[2].Width = 100;

            listView1.Columns.Add("控制值");
            listView1.Columns[3].Width = 60;

            listView1.Columns.Add("力[kN]");
            listView1.Columns[4].Width = 60;

            listView1.Columns.Add("位移[mm]");
            listView1.Columns[5].Width = 60;

            listView1.Columns.Add("变形1[mm]");
            listView1.Columns[6].Width = 70;

            listView1.Columns.Add("变形2[mm]");
            listView1.Columns[7].Width = 70;


            listView1.Columns.Add("平均变形[mm]");

            listView1.Columns[8].Width = 90;


            listView1.Columns.Add("不平衡度[%]");
            listView1.Columns[9].Width = 80;

            listView1.Columns.Add("控温[℃]");
            listView1.Columns[10].Width = 60;

            listView1.Columns.Add("上段温度");
            listView1.Columns[11].Width = 60;

            listView1.Columns.Add("中段温度");
            listView1.Columns[12].Width = 60;

            listView1.Columns.Add("下段温度");
            listView1.Columns[13].Width = 60;

            listView1.Columns.Add("温度梯度");
            listView1.Columns[14].Width = 60;

            listView1.Columns.Add("试验时间[h]");
            listView1.Columns[15].Width = 90;

            listView1.Columns.Add("波形个数");
            listView1.Columns[16].Width = 60;

            listView1.Columns.Add("循环次数");


            listView1.Items.Clear();
            lstspe.Items.Clear();

            IP.Components.Toolbox.Item m;

            this.cbomachine.Items.Clear();

            for (int i = 0; i < GlobeVal.myglobefile.ControllerCount; i++)
            {
                this.cbomachine.Items.Add((i + 1).ToString());
            }
            if ((GlobeVal.selcontroller >= 1) && (GlobeVal.selcontroller <= GlobeVal.myglobefile.ControllerCount))
            {
                this.cbomachine.SelectedIndex = GlobeVal.selcontroller - 1;
            }
            else
            {
                this.cbomachine.SelectedIndex = 0;
            }

            for (int i = 0; i < GlobeVal.myglobefile.ControllerCount; i++)
            {
                m      = new IP.Components.Toolbox.Item();
                m.Text = "主机" + (i + 1).ToString();

                m.Image = imageList4.Images[_Status_Testing.Selector_Status_Ready_For_Test.GetHashCode()];
                lstspe.Items.Add(m);

                ListViewItem lvi = new ListViewItem();
                lvi.Text = (i + 1).ToString();

                for (int j = 0; j < 17; j++)
                {
                    lvi.SubItems.Add("");
                }


                listView1.Items.Add(lvi);
            }

            cboy.Items.Clear();
            for (int i = 0; i < GlobeVal.myglobefile.ControllerCount; i++)
            {
                cbohy.Items.Add("主机" + (i + 1).ToString());
                cbohy1.Items.Add("主机" + (i + 1).ToString());
            }
            cbohy.SelectedIndex  = 0;
            cbohy1.SelectedIndex = 0;
            for (int j = 0; j < ClsStaticStation.m_Global.mycls.chsignals.Count; j++)
            {
                cboy.Items.Add(ClsStaticStation.m_Global.mycls.chsignals[j].cName);
                cboy1.Items.Add(ClsStaticStation.m_Global.mycls.chsignals[j].cName);
            }



            cboy.SelectedIndex  = 0;
            cboy1.SelectedIndex = 0;

            timer1.Enabled = true;
        }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     IP.Components.Toolbox.Item item1 = new IP.Components.Toolbox.Item();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UserControlSpe));
     this.label1            = new System.Windows.Forms.Label();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.listBox1          = new IP.Components.Toolbox(false);
     this.btnleft           = new System.Windows.Forms.Button();
     this.btnright          = new System.Windows.Forms.Button();
     this.imageList1        = new System.Windows.Forms.ImageList(this.components);
     this.tlp1                     = new System.Windows.Forms.TableLayoutPanel();
     this.statusStrip1             = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1    = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripSplitButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.BackColor = System.Drawing.Color.White;
     this.label1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label1.Location  = new System.Drawing.Point(0, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(292, 18);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "测试输入";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 3;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 30F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 31F));
     this.tableLayoutPanel1.Controls.Add(this.listBox1, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.btnleft, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.btnright, 2, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 18);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(292, 28);
     this.tableLayoutPanel1.TabIndex = 32;
     //
     // listBox1
     //
     this.listBox1.AllowDrop         = true;
     this.listBox1.AllowToolboxItems = true;
     this.listBox1.AutoScroll        = false;
     this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     item1.Tag          = null;
     item1.Text         = "试样1";
     item1.Tooltip      = "试样1";
     this.listBox1.Items.AddRange(new IP.Components.Toolbox.Item[] {
         item1
     });
     this.listBox1.Location    = new System.Drawing.Point(33, 3);
     this.listBox1.Name        = "listBox1";
     this.listBox1.ShowPointer = false;
     this.listBox1.Size        = new System.Drawing.Size(225, 22);
     this.listBox1.TabIndex    = 34;
     this.listBox1.Text        = "toolbox1";
     //
     // btnleft
     //
     this.btnleft.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.btnleft.Image    = ((System.Drawing.Image)(resources.GetObject("btnleft.Image")));
     this.btnleft.Location = new System.Drawing.Point(3, 3);
     this.btnleft.Name     = "btnleft";
     this.btnleft.Size     = new System.Drawing.Size(24, 22);
     this.btnleft.TabIndex = 0;
     this.btnleft.UseVisualStyleBackColor = true;
     this.btnleft.Click += new System.EventHandler(this.btnleft_Click);
     //
     // btnright
     //
     this.btnright.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.btnright.Image    = ((System.Drawing.Image)(resources.GetObject("btnright.Image")));
     this.btnright.Location = new System.Drawing.Point(264, 3);
     this.btnright.Name     = "btnright";
     this.btnright.Size     = new System.Drawing.Size(25, 22);
     this.btnright.TabIndex = 33;
     this.btnright.UseVisualStyleBackColor = true;
     this.btnright.Click += new System.EventHandler(this.btnright_Click);
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "Selector_Status_PreTest.ico");
     this.imageList1.Images.SetKeyName(1, "Selector_Status_Tested.ico");
     this.imageList1.Images.SetKeyName(2, "Selector_Status_Tested_Rejected.ico");
     this.imageList1.Images.SetKeyName(3, "Selector_Status_PostTest.ico");
     this.imageList1.Images.SetKeyName(4, "Selector_Status_Ready_For_Test.ico");
     //
     // tlp1
     //
     this.tlp1.ColumnCount = 1;
     this.tlp1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tlp1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.tlp1.Location = new System.Drawing.Point(0, 46);
     this.tlp1.Name     = "tlp1";
     this.tlp1.RowCount = 1;
     this.tlp1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 83F));
     this.tlp1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 83F));
     this.tlp1.Size     = new System.Drawing.Size(292, 76);
     this.tlp1.TabIndex = 33;
     //
     // statusStrip1
     //
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1,
         this.toolStripDropDownButton1
     });
     this.statusStrip1.Location = new System.Drawing.Point(0, 331);
     this.statusStrip1.Name     = "statusStrip1";
     this.statusStrip1.Size     = new System.Drawing.Size(292, 29);
     this.statusStrip1.TabIndex = 34;
     this.statusStrip1.Text     = "statusStrip1";
     this.statusStrip1.Visible  = false;
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.Font      = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.toolStripStatusLabel1.ForeColor = System.Drawing.Color.Red;
     this.toolStripStatusLabel1.Name      = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size      = new System.Drawing.Size(205, 24);
     this.toolStripStatusLabel1.Spring    = true;
     this.toolStripStatusLabel1.Text      = "请摘除引伸计";
     //
     // toolStripDropDownButton1
     //
     this.toolStripDropDownButton1.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripDropDownButton1.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
     this.toolStripDropDownButton1.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
     this.toolStripDropDownButton1.Size = new System.Drawing.Size(41, 27);
     this.toolStripDropDownButton1.Text = "toolStripDropDownButton1";
     //
     // UserControlSpe
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.statusStrip1);
     this.Controls.Add(this.tlp1);
     this.Controls.Add(this.tableLayoutPanel1);
     this.Controls.Add(this.label1);
     this.Name  = "UserControlSpe";
     this.Size  = new System.Drawing.Size(292, 360);
     this.Load += new System.EventHandler(this.UserControlSpe_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #6
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UserControlSpe));
     IP.Components.Toolbox.Item item2 = new IP.Components.Toolbox.Item();
     this.label1            = new System.Windows.Forms.Label();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.listBox1          = new IP.Components.Toolbox(false);
     this.btnleft           = new System.Windows.Forms.Button();
     this.btnright          = new System.Windows.Forms.Button();
     this.imageList1        = new System.Windows.Forms.ImageList(this.components);
     this.tlp1                     = new System.Windows.Forms.TableLayoutPanel();
     this.statusStrip1             = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1    = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripSplitButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.BackColor = System.Drawing.Color.White;
     this.label1.Name      = "label1";
     //
     // tableLayoutPanel1
     //
     resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
     this.tableLayoutPanel1.Controls.Add(this.listBox1, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.btnleft, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.btnright, 2, 0);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     //
     // listBox1
     //
     resources.ApplyResources(this.listBox1, "listBox1");
     this.listBox1.AllowDrop         = true;
     this.listBox1.AllowToolboxItems = true;
     this.listBox1.AutoScroll        = false;
     item2.Tag     = null;
     item2.Text    = "Specimen 1";
     item2.Tooltip = "Specimen 1";
     this.listBox1.Items.AddRange(new IP.Components.Toolbox.Item[] {
         item2
     });
     this.listBox1.Name        = "listBox1";
     this.listBox1.ShowPointer = false;
     //
     // btnleft
     //
     resources.ApplyResources(this.btnleft, "btnleft");
     this.btnleft.Name = "btnleft";
     this.btnleft.UseVisualStyleBackColor = true;
     this.btnleft.Click += new System.EventHandler(this.btnleft_Click);
     //
     // btnright
     //
     resources.ApplyResources(this.btnright, "btnright");
     this.btnright.Name = "btnright";
     this.btnright.UseVisualStyleBackColor = true;
     this.btnright.Click += new System.EventHandler(this.btnright_Click);
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "Selector_Status_PreTest.ico");
     this.imageList1.Images.SetKeyName(1, "Selector_Status_Tested.ico");
     this.imageList1.Images.SetKeyName(2, "Selector_Status_Tested_Rejected.ico");
     this.imageList1.Images.SetKeyName(3, "Selector_Status_PostTest.ico");
     this.imageList1.Images.SetKeyName(4, "Selector_Status_Ready_For_Test.ico");
     //
     // tlp1
     //
     resources.ApplyResources(this.tlp1, "tlp1");
     this.tlp1.Name = "tlp1";
     //
     // statusStrip1
     //
     resources.ApplyResources(this.statusStrip1, "statusStrip1");
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1,
         this.toolStripDropDownButton1
     });
     this.statusStrip1.Name = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     resources.ApplyResources(this.toolStripStatusLabel1, "toolStripStatusLabel1");
     this.toolStripStatusLabel1.ForeColor = System.Drawing.Color.Red;
     this.toolStripStatusLabel1.Name      = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Spring    = true;
     //
     // toolStripDropDownButton1
     //
     resources.ApplyResources(this.toolStripDropDownButton1, "toolStripDropDownButton1");
     this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripDropDownButton1.Name         = "toolStripDropDownButton1";
     //
     // UserControlSpe
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.statusStrip1);
     this.Controls.Add(this.tlp1);
     this.Controls.Add(this.tableLayoutPanel1);
     this.Controls.Add(this.label1);
     this.Name  = "UserControlSpe";
     this.Load += new System.EventHandler(this.UserControlSpe_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }