コード例 #1
0
 public HomeViewModel(IMessageService inputBoxService, INavigationService navigationService, IGradeBookRepository gradeBookRepository) : base(navigationService)
 {
     _inputBoxService        = inputBoxService;
     _navigationService      = navigationService;
     _gradeBookRepository    = gradeBookRepository;
     CreateSubmissionCommand = new DelegateCommandAsync(CreateSubmission);
     NewProjectCommand       = new DelegateCommandAsync(NewProject);
     SubmissionsCommand      = new DelegateCommandAsync(Submissions);
 }
コード例 #2
0
 public ProjectViewModel(IVisualStudioService visualStudioService,
                         IConsoleAppGrader grader, INavigationService navigationService, IGradeBookRepository gradeBookRepository, IMessageService messageService) : base(navigationService)
 {
     Cases = new ObservableCollection <IGradeCase>();
     _visualStudioService = visualStudioService;
     _grader              = grader;
     _navigationService   = navigationService;
     _gradeBookRepository = gradeBookRepository;
     _messageService      = messageService;
     CodeProject          = new CodeProject {
         CsvCases = "", CsvExpectedOutput = "Hello World!"
     };
     TestCommand   = new DelegateCommandAsync(Test);
     SubmitCommand = new DelegateCommandAsync(Submit);
     Submission    = new Submission();
 }