コード例 #1
0
        protected virtual void InitializeForm()
        {
            this.StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
            this.DesktopLocation = new Point(DEF_UI.MAIN_POS_X, DEF_UI.MAIN_POS_Y);
            this.Size            = new Size(DEF_UI.MAIN_SIZE_WIDTH, DEF_UI.MAIN_SIZE_HEIGHT);
            this.FormBorderStyle = FormBorderStyle.None;

            nSelMotor = -1;

            ResouceMapping();

            TmrMotor.Enabled  = true;
            TmrMotor.Interval = 100;
            TmrMotor.Stop();
        }
コード例 #2
0
 private void FormAxisOperation_Leave(object sender, EventArgs e)
 {
     TmrMotor.Stop();
 }
コード例 #3
0
 private void FormAxisOperation_Enter(object sender, EventArgs e)
 {
     TmrMotor.Start();
 }