Beispiel #1
0
        public Dialogs(
            ShowProgressDialog showProgress,
            ShowErrorDialog showError,
            ShowInfoDialog showInfo,
            ShowConfirmDialog showConfirm)
        {
            if (showProgress == null)
            {
                throw new ArgumentNullException(nameof(showProgress));
            }
            if (showError == null)
            {
                throw new ArgumentNullException(nameof(showError));
            }
            if (showInfo == null)
            {
                throw new ArgumentNullException(nameof(showInfo));
            }
            if (showConfirm == null)
            {
                throw new ArgumentNullException(nameof(showConfirm));
            }

            ShowProgress = showProgress;
            ShowError    = showError;
            ShowInfo     = showInfo;
            ShowConfirm  = showConfirm;
        }
Beispiel #2
0
        private void dataGridView_DoubleClick(object sender, EventArgs e)
        {
            var show = GetSelectedShow();

            if (show == null)
            {
                return;
            }

            using (var dlg = new ShowInfoDialog(show))
                dlg.ShowDialog();
        }