private void MnuMainFileNewLoggerClick(object sender, EventArgs e) { using (FrmNew newDlg = new FrmNew()) { if (newDlg.ShowDialog(this) == DialogResult.OK) { new FrmLogDocument(newDlg.LogProvider).Show(mainDockPanel); } } }
private void LoggerSelected(object sender, EventArgs e) { if (lstLogger.SelectedItem is ReceiverBase selectedReceiver) { using (FrmNew newDlg = new FrmNew(selectedReceiver.Name)) { if (newDlg.ShowDialog(this) == DialogResult.OK) { new FrmLogDocument(newDlg.LogProvider).Show(mMainForm.MainDockPanel); } } } lstLogger.ClearSelected(); }