Exemplo n.º 1
0
 private static void LoadSettings(ValidationViewModel vm)
 {
     if (File.Exists(Settings.Default.LastOpenedRequirement))
         vm.RequirementFileSource = Settings.Default.LastOpenedRequirement;
     if (File.Exists(Settings.Default.LastOpenedSubmission))
         vm.SubmissionFileSource = Settings.Default.LastOpenedSubmission;
 }
Exemplo n.º 2
0
 public MainWindow(ValidationViewModel viewModel) 
     : this ()
 {
     LoadSettings(viewModel);
     ValidationGrid.DataContext = viewModel;
     CreateCobieGrid.DataContext = viewModel;
 }
Exemplo n.º 3
0
 public FacilitySaveCommand(ValidationViewModel viewModel)
 {
     _vm = viewModel;
 }
 public ValidateAndSaveCommand(ValidationViewModel validationViewModel)
 {
     this._vm = validationViewModel;
 }
 public SelectReportFileCommand(SourceFile tb, ValidationViewModel model)
 {
     FileSelector = ContainerBootstrapper.Instance.Container.Resolve<ISaveFileSelector>();
     _currentFile = tb;
     _vm = model;
 }
Exemplo n.º 6
0
 public SelectFileCommand(SourceFile tb, ValidationViewModel model)
 {
     _currentFile = tb;
     _vm = model;
 }