public LoginUCViewModel(IEventAggregator ea, IHttpActions httpActions, IDialogService dialogService) { this.eventAggregator = ea; Model = new StationModel(); this.httpActions = httpActions; this.dialogService = dialogService; }
public HttpClientRequest(IHttpActions httpActions) { if (httpActions == null) { throw new ArgumentNullException("httpActions"); } _httpActions = httpActions; }
public AppMainWindowViewModel(IEventAggregator ea, IHttpActions httpActions, IDialogService dialogService) { this.dialogService = dialogService; this.httpActions = httpActions; CurrentView = dialogService.GetUserControl(ViewType.Login); ea.GetEvent <ChangeViewEvent>().Subscribe(SwitchView); ea.GetEvent <SendModelEvent>().Subscribe(LoadModel); ea.GetEvent <LogUserForceEvent>().Subscribe(ForceQuit); }
public StaffControlUCViewModel(IEventAggregator eventAggregator, IHttpActions httpActions, IDialogService dialogService) { // assign injections aggregator = eventAggregator; http = httpActions; dialog = dialogService; // Assaign for properties aggregator.GetEvent <SendModelEvent>().Subscribe(LoadModel); DequeueModel = new DequeueModel() { CustomerId = 0 }; }
public void Init() { eventAggregator = ApplicationServiceMockup.Instance.EventAggregator; httpActions = new ClientHttpActionsMockup(); dialogService = new ViewDialogMockup(); }