Exemplo n.º 1
0
        SendingViewModel GetSendingViewModel()
        {
            SendingViewModel          model = new SendingViewModel();
            List <DistributionCentre> list  = DistributionCentreBLL.GetDistributionCentreList();

            model.DistributionCentres = list;
            return(model);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }