private void OnSuccessfulHealthCheck(OnSuccessfulHealthCheck onSuccessfulHealthCheck) { switch (this._loginViewModel.LoginUsingExisting()) { case LoginResult.LoginFailed: DispatcherHelper.CheckBeginInvokeOnUI((Action)(() => { this.StateViewModel.UpdateActiveView(ViewState.Login); this.CurrentViewModel = (IBaseViewModel)this._loginViewModel; })); this._loginViewModel.SetupFailingLogin(); break; case LoginResult.InvalidBoardingPass: this._messenger.Send <OnStartHealthCheck>(new OnStartHealthCheck()); DispatcherHelper.CheckBeginInvokeOnUI((Action)(() => { this.StateViewModel.UpdateActiveView(ViewState.HealthCheck); this.CurrentViewModel = (IBaseViewModel)this._healthCheckViewModel; })); break; case LoginResult.LoginSuccessful: this._loginViewModel.UpdateState(); break; case LoginResult.NoLoginFound: DispatcherHelper.CheckBeginInvokeOnUI((Action)(() => { this.StateViewModel.UpdateActiveView(ViewState.Login); this.CurrentViewModel = (IBaseViewModel)this._loginViewModel; })); break; } }
private void OnSuccessfulHealthCheck(OnSuccessfulHealthCheck obj) { Task.Factory.StartNew((Action)(() => this._grabberService.UploadPreviousSessions())); Task.Factory.StartNew((Action)(() => this._logDumpService.DumpLog())); }
private void OnSuccessfulHealthCheck(OnSuccessfulHealthCheck onSuccessfulHealthCheck) { DispatcherHelper.CheckBeginInvokeOnUI((Action)(() => this.CanLogin = true)); }