public ShellDisplayViewModel(IPresentationFrameworkServiceFacade presentationFrameworkServiceFacade) { _waitScreenShower = presentationFrameworkServiceFacade.ShellServices.WaitScreenShower; _dialogPresenter = presentationFrameworkServiceFacade.ShellServices.DialogPresenter; _dialogFactory = presentationFrameworkServiceFacade.DialogFactory; ShowWaitScreenCommand = presentationFrameworkServiceFacade.CommandFactory.CreateAsyncCommand(ShowWaitScreen); ShowInputDialogCommand = presentationFrameworkServiceFacade.CommandFactory.CreateAsyncCommand(ShowInputDialog); ShowMessageDialogCommand = presentationFrameworkServiceFacade.CommandFactory.CreateAsyncCommand(ShowMessageDialog); ShowExceptionCommand = presentationFrameworkServiceFacade.CommandFactory.CreateSyncCommand(ShowException); }
public AccountingViewModel(IApplicationManager applicationManager, IDialogPresenter dialogPresenter) { ApplicationManager = applicationManager; DialogPresenter = dialogPresenter; IncomesCollection = new ObservableCollection<AccountItem>(); SpendingCollection = new ObservableCollection<AccountItem>(); WriteToExcelCommand = new Command(WriteToExcel); GridUpdateCommand = new Command(GridUpdate); GridUpdate(); }
public ChangeAuthenticationStateCommand(IAuthenticationService authenticationService, IDialogPresenter dialogPresenter, LoginViewModel loginViewModel) { this.authenticationService = authenticationService; this.dialogPresenter = dialogPresenter; this.loginViewModel = loginViewModel; }
public void RegisterPresenter(IDialogPresenter presenter) { this.presenter = presenter; }
public DialogViewModel(IServiceProvider serviceProvider, IDialogPresenter dialogPresenter) : base(serviceProvider) { _dialogPresenter = dialogPresenter; }
public FatalHandler(IDialogPresenter dialogPresenter, Action closeAppAction) { _dialogPresenter = dialogPresenter; _closeAppAction = closeAppAction; }