private void OnEditEnded(bool clearCheck, CoordViewType viewType)
 {
     try
     {
         Properties.Settings.Default.ClearCheck = clearCheck;
         Properties.Settings.Default.CoordView  = viewType;
         Properties.Settings.Default.Save();
         EditEnded?.Invoke(this, EventArgs.Empty);
         Service.Close();
     }
     catch
     {
         MessageBox.Show(
             "Не удалось выполнить операцию",
             "Ошибка",
             MessageBoxButton.OK,
             MessageBoxImage.Error
             );
         return;
     }
 }
 public SettingsWindowViewModel()
 {
     ClearCheck            = Properties.Settings.Default.ClearCheck;
     SelectedCoordViewType = Properties.Settings.Default.CoordView;
 }