示例#1
0
 /// <summary>
 /// 添加 GBT228 参数输入控件
 /// </summary>
 /// <param name="_methodName">方法名称</param>
 private void AddInputGBT228Control(string _methodName)
 {
     if (input_GBT228 == null)
     {
         input_GBT228             = new HR_Test.Input.GBT228_2010Tensile();
         input_GBT228._MethodName = _methodName;
         this.palInput.Controls.Add(input_GBT228);
         //先添加控件,然后调整位置
         int left = (Screen.PrimaryScreen.WorkingArea.Width - 180 - input_GBT228.gbTensileC.Width) / 2;
         int top  = (Screen.PrimaryScreen.WorkingArea.Height - input_GBT228.gbTensileC.Height - 195) / 2;
         input_GBT228.gbTensileC.Location = new Point(left, top);
         input_GBT228.Dock = DockStyle.Fill;
         int mleft = (Screen.PrimaryScreen.WorkingArea.Width - 180 - input_GBT228.palMethodShow.Width) / 2;
         int mtop  = (input_GBT228.palBottom.Height - input_GBT228.palMethodShow.Height) / 2;
         input_GBT228.palMethodShow.Location = new Point(mleft, mtop);
         input_GBT228.BringToFront();
     }
     else
     {
         input_GBT228.BringToFront();
         input_GBT228.ReadMethodInfo(_methodName);
     }
 }
示例#2
0
 public frmTensileOther2(Input.GBT228_2010Tensile frmi)
 {
     InitializeComponent();
     _frmi = frmi;
 }