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; }
private void dataGridView_DoubleClick(object sender, EventArgs e) { var show = GetSelectedShow(); if (show == null) { return; } using (var dlg = new ShowInfoDialog(show)) dlg.ShowDialog(); }