Example #1
0
 public void NewSeriesCommandAction()
 {
     try
     {
         View.SeriesWindow window = new View.SeriesWindow();
         window.ShowDialog();
         window = null;
     } catch (Exception e)
     {
         MessageBox.Show(e.Message, "Error!", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Example #2
0
 public void EditSeriesCommandAction()
 {
     if (selectedSeries != null)
     {
         try
         {
             View.SeriesWindow window = new View.SeriesWindow();
             Messenger.Default.Send(new SendDataToSeriesView(SelectedSeries));
             window.ShowDialog();
         } catch (Exception e)
         {
             MessageBox.Show(e.Message, "Error!", MessageBoxButton.OK, MessageBoxImage.Error);
         }
     }
 }