Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="kompass"></param>
 /// <param name="position"></param>
 public static void Kompass(Kompass kompass, CurrentPosition position)
 {
     if (kompass.InvokeRequired)
     {
         KompassPositionCallback d = Kompass;
         _frm3DprinterTool.Invoke(d, kompass, position);
     }
     else
     {
         kompass.CurrentPosition = position;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// </summary>
 /// <param name="kompass"></param>
 /// <param name="marlin"></param>
 public static void DelegateKompass(Kompass kompass, MarlinCommunication marlin)
 {
     if (kompass.InvokeRequired)
     {
         DelegateKompassCallback d = DelegateKompass;
         _frm3DprinterTool.Invoke(d, kompass, marlin);
     }
     else
     {
         kompass.MarlinCommunication = marlin;
     }
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="kompass"></param>
 /// <param name="communication"></param>
 public static void Kompass(Kompass kompass, MarlinCommunication communication)
 {
     if (kompass.InvokeRequired)
     {
         KompassCallback d = Kompass;
         _frm3DprinterTool.Invoke(d, kompass, communication);
     }
     else
     {
         kompass.MarlinCommunication = communication;
     }
 }