示例#1
0
 private void 检测界面ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CloseWindow("FrmTest") == false)
     {
         FrmTest objFrm = new FrmTest();
         OpenWindow(objFrm);
     }
 }
示例#2
0
 public FrmTest()
 {
     InitializeComponent();
     frmtest    = this;//指定本窗口便于其他类调用本窗体控件
     this.Load += FrmTest_Load;
     lblx1.DataBindings.Add("Text", Global.CurrentPoint1, "X");
     lbly1.DataBindings.Add("Text", Global.CurrentPoint1, "Y");
     lblx2.DataBindings.Add("Text", Global.CurrentPoint2, "X");
     lbly2.DataBindings.Add("Text", Global.CurrentPoint2, "Y");
     txtHole1.DataBindings.Add("Text", Global.CurrentHoleCount1, "Count");
     txtHole2.DataBindings.Add("Text", Global.CurrentHoleCount2, "Count");
 }