예제 #1
0
 //BtnStartStop_Click
 private void btnStartStop_Click(object sender, RoutedEventArgs e)
 {
     if (!appMainService.BackgroundTaskRunning)
     {
         BtnStartStop.Content = "STOP";
         readAppSettingsFromXml();
         BtnSettings.IsEnabled  = false;
         BtnJob.IsEnabled       = false;
         BtnJobReload.IsEnabled = false;
         TxtStatus.Background   = Brushes.White;
         appMainService.StartBackgroundService();
         return;
     }
     BtnStartStop.Content   = "Wait..";
     BtnStartStop.IsEnabled = false;
     appMainService.StopBackgroundService();
 }