/// <summary> /// YBT5349 /// </summary> /// <param name="_methodName"></param> private void AddInputYBT5349Control(string _methodName) { if (input_YBT5349 == null) { input_YBT5349 = new HR_Test.Input.YBT5349_2006Bend(); input_YBT5349._MethodName = _methodName; this.palInput.Controls.Add(input_YBT5349); //先添加控件,然后调整位置 int left = (Screen.PrimaryScreen.WorkingArea.Width - 180 - input_YBT5349.gbBendC.Width) / 2; int top = (Screen.PrimaryScreen.WorkingArea.Height - input_YBT5349.gbBendC.Height - 195) / 2; input_YBT5349.gbBendC.Location = new Point(left, top); input_YBT5349.Dock = DockStyle.Fill; int mleft = (Screen.PrimaryScreen.WorkingArea.Width - 180 - input_YBT5349.palMethodShow.Width) / 2; int mtop = (input_YBT5349.palBottom.Height - input_YBT5349.palMethodShow.Height) / 2; input_YBT5349.palMethodShow.Location = new Point(mleft, mtop); input_YBT5349.BringToFront(); } else { input_YBT5349.BringToFront(); input_YBT5349.ReadMethodInfo(_methodName); } }
public frmBendOther2(Input.YBT5349_2006Bend fi) { InitializeComponent(); _fi = fi; }