示例#1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            LoadNewModulesToMenuItem(context.GeneralInformation.AddNewModules);

            controlform = new ControlCardLogForm();
            showlog     = new ShowLog(controlform.PrintLog);

            string[] ActionFileName = context.GeneralInformation.ActionFileName.Split('|');
            LoadFormAction = RefelectionHelper.CreatRefelectObj <IAction>(ActionFileName[0], ActionFileName[1]);

            LoadFormAction.PrinterLog = showlog.OutputLog;

            LoadFormAction.InitialHardWare();

            Task.Run(() => { LoadFormAction.FixtureReset(ControlCardInfomation.AxisCard); });
        }
示例#2
0
 private void btnaxisLog_Click(object sender, EventArgs e)
 {
     if (controlform == null)
     {
         controlform               = new ControlCardLogForm();
         controlform.TopMost       = true;
         controlform.Location      = new Point(SystemInformation.WorkingArea.Width - controlform.Width, 0);
         controlform.StartPosition = FormStartPosition.Manual;
     }
     if (LogState)
     {
         controlform.Show();
         LogState = false;
     }
     else
     {
         //controlform.Close();
         controlform.Hide();
         LogState = true;
     }
 }