public static bool Execute() { using (var logHistory = new LogHistory()) { logHistory.LoadLogFromEventLog(DateTime.Now); return(logHistory.ShowDialog() == DialogResult.OK); } }
private void logHistoryToolStripMenuItem_Click(object sender, EventArgs e) { LogHistory.Execute(); }