private void openEventLogToolStripMenuItem_Click(object sender, EventArgs e) { OpenEventLogDialog openEventLogDlg = new OpenEventLogDialog(); if (openEventLogDlg.ShowDialog(this) != DialogResult.OK) { return; } EventLogForm mdiForm = new EventLogForm(); mdiForm.MdiParent = this; mdiForm.LoadFile(openEventLogDlg.EventLogFile); if (!mdiForm.IsDisposed) { mdiForm.Show(); } }
private void openEventLogToolStripMenuItem_Click(object sender, EventArgs e) { OpenEventLogDialog openEventLogDlg = new OpenEventLogDialog(); if (openEventLogDlg.ShowDialog(this) != DialogResult.OK) return; EventLogForm mdiForm = new EventLogForm(); mdiForm.MdiParent = this; mdiForm.LoadFile(openEventLogDlg.EventLogFile); if (!mdiForm.IsDisposed) mdiForm.Show(); }