public void OnClickedTrainWindowButton()
        {
            this.ModelNotLoaded = false;
            TrainingViewModel   = new TrainingWindowViewModel(ref NeuralNetwork);
            TrainingWindow trainWindow = new TrainingWindow(TrainingViewModel);

            trainWindow.ShowDialog();
        }
 public MainWindowViewModel(INeuralNetwork neuralNetwork)
 {
     NeuralNetwork          = neuralNetwork;
     OpenTrainWindowCommand = new RelayCommand(OnClickedTrainWindowButton);
     SaveNeuralNetwork      = new RelayCommand(OnSaveNeuralNetwork);
     TrainingViewModel      = new TrainingWindowViewModel(ref NeuralNetwork);
     DetectorViewModel      = new DetectorViewModel(ref NeuralNetwork, (message) =>
     {
         this.StatusMessage = message;
     });
     LoadNeuralNetwork = new RelayCommand(OnLoadNeuralNetwork);
 }