Пример #1
0
 private static void SetControlEnabled(OwlControllerBase ctl, bool bEnabled)
 {
     if (ctl.IsControlEnabled != bEnabled)
     {
         ctl.IsControlEnabled = bEnabled;
         ctl.Initialize();
         ctl.Recalibrate();
     }
 }
Пример #2
0
 private void CalibratePart(string partName)
 {
     var ignored2 = this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         OwlControllerBase part = _owl.PartsList.Find(p => p.Name.ToLower() == partName.ToLower());
         if (part != null)
         {
             part.Recalibrate();
         }
         else
         {
             SetStatusLabel("Error calibrating " + partName + " - part not found.");
         }
     });
 }