예제 #1
0
 private void MnuMainFileNewLoggerClick(object sender, EventArgs e)
 {
     using (FrmNew newDlg = new FrmNew())
     {
         if (newDlg.ShowDialog(this) == DialogResult.OK)
         {
             new FrmLogDocument(newDlg.LogProvider).Show(mainDockPanel);
         }
     }
 }
예제 #2
0
        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();
        }