Esempio n. 1
0
        public Task EditQuoteAsync(QuoteBlotterItemViewModel quoteBlotterItemViewModel)
        {
            var viewModel = _quoteEditViewModelFactory();

            viewModel.Initialise(quoteBlotterItemViewModel.Id);
            return(_viewService.ShowModalAsync(viewModel));
        }
Esempio n. 2
0
 private object Open(QuoteBlotterItemViewModel quote)
 {
     return(_service.EditQuoteAsync(quote)
            .Then(() => BusyViewModel.ActiveAsync("... Refreshing quotes ..."), Scheduler.Dispatcher.TPL)
            .Then(() => RefreshQuotesAsync(), Scheduler.Task.TPL)
            .CatchAndHandle(_ => StandardDialog.Error("Error", "Problem refreshing quotes"), Scheduler.Task.TPL)
            .Finally(BusyViewModel.InActive, Scheduler.Task.TPL));
 }
Esempio n. 3
0
 public Task EditQuoteAsync(QuoteBlotterItemViewModel quoteBlotterItemViewModel)
 {
     var viewModel = _quoteEditViewModelFactory();
     viewModel.Initialise(quoteBlotterItemViewModel.Id);
     return _viewService.ShowModalAsync(viewModel);
 }
Esempio n. 4
0
 private object Open(QuoteBlotterItemViewModel quote)
 {
     return _service.EditQuoteAsync(quote)
                    .Then(() => BusyViewModel.ActiveAsync("... Refreshing quotes ..."), Scheduler.Dispatcher.TPL)
                    .Then(() => RefreshQuotesAsync(), Scheduler.Task.TPL)
                    .CatchAndHandle(_ => StandardDialog.Error("Error", "Problem refreshing quotes"), Scheduler.Task.TPL)
                    .Finally(BusyViewModel.InActive, Scheduler.Task.TPL);
 }