void StopMachine() { Thread.Sleep(1000); GoToZeroes(); m_CurTask = new stanok_coord(); //ControlUserControl.checkBoxPauseSoft.IsChecked = true; dispatcherTimer.Stop(); StartFromBegin = true; }
public int z = 0; //между бабок #endregion Fields #region Methods public stanok_coord Clone() { stanok_coord p = new stanok_coord(); p.x = x; p.y = y; p.z = z; p.w = w; return p; }
void InitStartPos() { if (Properties.Settings.Default.Plane) { m_cur_pos.x = GetStepFromX(GetBounds().X); m_cur_pos.y = GetStepFromY(GetBounds().Y); m_CurTask = m_cur_pos.Clone(); m_cur_pos.z = GetStepFromZ(Properties.Settings.Default.MillStart); } else { m_cur_pos.x = GetStepFromY(Properties.Settings.Default.MillStart); m_CurTask.z = GetStepFromZ((double)Properties.Settings.Default.JobStart); } }