Beispiel #1
0
 public void SyncScope_Click(object sender, EventArgs e)
 {
     if (platformInstalled && scope != null && scope.Connected && scope.CanSync && !scope.AtPark)
     {
         scope.SyncToCoordinates(Earth3d.MainWindow.RA, Earth3d.MainWindow.Dec);
     }
     else
     {
         if (scope.CanSync && scope.AtPark)
         {
             MessageBox.Show(Language.GetLocalizedText(397, "The telescope is parked. Unpark the scope to Sync"), Language.GetLocalizedText(393, "Telescope control"));
         }
         else
         {
             if (!scope.CanSync)
             {
                 MessageBox.Show(Language.GetLocalizedText(398, "The Telescope does not support syncing"), Language.GetLocalizedText(393, "Telescope control"));
             }
         }
     }
 }