コード例 #1
0
        public ReportBugModalViewModel(
            BugReport bugReport,
            SendingViewModel sendingViewModel,
            SentViewModel sentViewModel,
            FormViewModel formViewModel,
            FailureViewModel failureViewModel)
        {
            _bugReport        = bugReport;
            _sendingViewModel = sendingViewModel;
            _sentViewModel    = sentViewModel;
            FormViewModel     = formViewModel;
            _failureViewModel = failureViewModel;

            SendReportCommand = new RelayCommand(SendReport, CanSend);
            BackCommand       = new RelayCommand(Back);
            RetryCommand      = new RelayCommand(Retry, CanSend);
        }
コード例 #2
0
        public ReportBugModalViewModel(
            Common.Configuration.Config appConfig,
            BugReport bugReport,
            SendingViewModel sendingViewModel,
            SentViewModel sentViewModel,
            FormViewModel formViewModel,
            FailureViewModel failureViewModel)
        {
            _appConfig        = appConfig;
            _bugReport        = bugReport;
            _sendingViewModel = sendingViewModel;
            _sentViewModel    = sentViewModel;
            FormViewModel     = formViewModel;
            _failureViewModel = failureViewModel;

            SendReportCommand = new RelayCommand(SendReport, CanSend);
            BackCommand       = new RelayCommand(Back);
            RetryCommand      = new RelayCommand(Retry, CanSend);
            CloseErrorCommand = new RelayCommand(CloseErrorAction);
        }