Exemple #1
0
        private void OnSessionDetailsBtnClick(object sender, EventArgs e)
        {
            var dashboardOpen = new SessionDashboardForm(_selectedSession.Id, _queryDao, _commandService, DependencyResolver.Resolve <IFingerprintVerifier>());

            dashboardOpen.ShowDialog();
            RefreshSeminars();
        }
Exemple #2
0
        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();
        }