public ItemWindow(NotifyMain notifyMain, ObservableCollection <ObservableCollection <Solution> > listOfSolutions,
                   Settings settings, Solution CurrentSolutionGrid, bool addUpdate = false)
 {
     InitializeComponent();
     DataContext = new ItemViewViewModel(
         listOfSolutions, settings, CurrentSolutionGrid, addUpdate);
     ((ItemViewViewModel)DataContext).Notify += notifyMain;
 }
 public SettingsWindow(Settings settings, NotifyMain notifyMain, TextHandler textHandler, NotifyMain saveSettings)
 {
     DataContext = new SettingsViewModel(settings);
     ((SettingsViewModel)DataContext).Notify          += notifyMain;
     ((SettingsViewModel)DataContext).NotifyTextColor += textHandler;
     ((SettingsViewModel)DataContext).SaveSettings    += saveSettings;
     InitializeComponent();
 }
 public MyMessageBoxWindow(string titleText, string text, Settings settings, NotifyMain YesClicked = null)
 {
     DataContext = new MyMessageBoxViewModel(titleText, text, settings, YesClicked == null ? false : true);
     if (YesClicked != null)
     {
         ((MyMessageBoxViewModel)DataContext).YesClicked += YesClicked;
     }
     InitializeComponent();
 }