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(); }
private void FormAxisOperation_Leave(object sender, EventArgs e) { TmrMotor.Stop(); }
private void FormAxisOperation_Enter(object sender, EventArgs e) { TmrMotor.Start(); }