Example #1
0
 void StopMachine()
 {
     Thread.Sleep(1000);
     GoToZeroes();
     m_CurTask = new stanok_coord();
     //ControlUserControl.checkBoxPauseSoft.IsChecked = true;
     dispatcherTimer.Stop();
     StartFromBegin = true;
 }
Example #2
0
            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;
            }
Example #3
0
 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);
     }
 }