예제 #1
0
        /// <summary>
        /// 界面加载
        /// </summary>
        private void FactoryTool_Load(object sender, EventArgs e)
        {
            ddSpeed_X.SelectedIndex  = 0;
            ddSpeed_Y.SelectedIndex  = 0;
            ddSpeed_Y2.SelectedIndex = 0;
            ddSpeed_Z.SelectedIndex  = 0;
            isDoubleYAxis            = PubFunc.IsDoubleYAxis();
            groupBox_Y2.Visible      = isDoubleYAxis;
            cbDoubleYSynchro.Visible = isDoubleYAxis;
            this.Width = isDoubleYAxis ? 58 + groupBox_X.Width * 4 : 58 + groupBox_X.Width * 3;

            Thread statethread = new Thread(new ParameterizedThreadStart(GetState));

            statethread.IsBackground = false;
            statethread.Start(false);
        }
예제 #2
0
 public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     groupBoxMotorParam.Visible = PubFunc.IsDoubleYAxis();
 }