private void OnSessionDetailsBtnClick(object sender, EventArgs e) { var dashboardOpen = new SessionDashboardForm(_selectedSession.Id, _queryDao, _commandService, DependencyResolver.Resolve <IFingerprintVerifier>()); dashboardOpen.ShowDialog(); RefreshSeminars(); }
private async void OnStartSessionBtnClick(object sender, EventArgs e) { var confirmed = MessageBoxWrapper.Confirmation("Are you sure you want to start session?") == DialogResult.Yes; if (!confirmed) { return; } await _commandService.StartAsync(new StartSession { Id = _selectedSession.Id }).OnError(_ => MessageBoxWrapper.Error("Failed to start session")); var dashboardOpen = new SessionDashboardForm(_selectedSession.Id, _queryDao, _commandService, DependencyResolver.Resolve <IFingerprintVerifier>()); dashboardOpen.ShowDialog(); RefreshSeminars(); }