Example #1
0
 private void button9_Click(object sender, EventArgs e)
 {
     if (((Button)sender).Tag != null)
     {
         FrmMgr.Show(((Button)sender).Tag.ToString());
     }
 }
Example #2
0
 private void Btn_SwitchSubFrom(object sender, EventArgs e)
 {
     if (((Button)sender).Tag != null)
     {
         FrmMgr.Show(((Button)sender).Tag.ToString());
     }
 }
Example #3
0
 static void InitSysterm()
 {
     StartUpdate.SendStartMsg("读取配置文件");
     Thread.Sleep(100);
     //StartUpdate.SendStartMsg("初始化相机");
     //CameraMgr.Inst.GetHashCode();
     StartUpdate.SendStartMsg("初始化几面窗口");
     FrmMgr.Init();
     Thread.Sleep(200);
     HZZH.Common.Config.AlarmLog.LoadLogData(AppDomain.CurrentDomain.BaseDirectory + "Logs\\", DateTime.Now.ToString("yyyy-MM-dd"));
 }
Example #4
0
        private void button14_Click(object sender, EventArgs e)
        {
            VisCalib calib = (VisCalib)FrmMgr.GetFormInst <VisCalib>(0);

            calib.CalibSetData = new CalibSet()
            {
                PlatformMove = Vision.Logic.MotionPlatform.MotionPlat,
                GetImage     = HzVision.Device.CameraMgr.Inst[0],
                Calib        = Vision.VisionProject.Instance.Tool.Calibs[0]
            };
            FrmMgr.Show("VisCalib," + 0);
        }
Example #5
0
        private void VisCalib_Load(object sender, EventArgs e)
        {
            ProductForm form = FrmMgr.GetFormInst <ProductForm>(0);

            UserBingData.SetBinding(form.Lcheck, "Checked", this.checkBox6, "Checked");
            UserBingData.SetBinding(form.Step, "Text", this.myTextBox2, "Text");

            button15.MouseDown += (s, ev) => form.button2_MouseDown(form.button5, ev);
            button14.MouseDown += (s, ev) => form.button2_MouseDown(form.button2, ev);
            button7.MouseDown  += (s, ev) => form.button2_MouseDown(form.button19, ev);
            button6.MouseDown  += (s, ev) => form.button2_MouseDown(form.button7, ev);
            button2.MouseDown  += (s, ev) => form.button2_MouseDown(form.button21, ev);
            button5.MouseDown  += (s, ev) => form.button2_MouseDown(form.button20, ev);

            button15.MouseUp += (s, ev) => form.button17_MouseUp(form.button5, ev);
            button14.MouseUp += (s, ev) => form.button17_MouseUp(form.button2, ev);
            button7.MouseUp  += (s, ev) => form.button17_MouseUp(form.button19, ev);
            button6.MouseUp  += (s, ev) => form.button17_MouseUp(form.button7, ev);
            button2.MouseUp  += (s, ev) => form.button17_MouseUp(form.button21, ev);
            button5.MouseUp  += (s, ev) => form.button17_MouseUp(form.button20, ev);
        }
Example #6
0
 private void AxisParaBtn_Click(object sender, EventArgs e)
 {
     FrmMgr.Show(((Button)sender).Tag.ToString());
 }
Example #7
0
 private void button5_Click(object sender, EventArgs e)
 {
     FrmMgr.ShowBack();
 }
Example #8
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     FrmMgr.Show(((Button)sender).Tag.ToString());
 }
Example #9
0
 private void levelButton1_Click(object sender, EventArgs e)
 {
     FrmMgr.Show(((Button)sender).Tag.ToString());
 }
Example #10
0
 private void button1_Click(object sender, EventArgs e)
 {
     ((麦拉机.参数设置.ProductForm)FrmMgr.GetFormInst("ProductForm")).RefreshTreeView();
     FrmMgr.Show(((Button)sender).Tag.ToString());
 }