/// <summary>
 /// Method to show whether the update operation is succeeded.
 /// </summary>
 private void NotifyCurrentStatus()
 {
     if (!string.IsNullOrEmpty(Status))
     {
         _windowsDialogService.ShowMessageBox(Status,
                                              "Updating Car",
                                              MessageBoxButton.OK,
                                              Status.ToLower().Contains("error") ? MessageBoxImage.Warning :
                                              MessageBoxImage.Information);
     }
 }
Ejemplo n.º 2
0
        public void CloseWindow()
        {
            if (!ViewModelLocator.CacheViewModel.IsBackupRunning)
            {
                m_Window.Close();
            }
            else
            {
                IDialogService dialogService = new WindowsDialogService();

                dialogService.ShowMessageBox("Please wait until the backup is finished!");
            }
        }