private void 数据查询和回放ToolStripMenuItem_Click(object sender, EventArgs e) { if (myQueryForm != null) { myQueryForm.Activate(); } else { myQueryForm = new QueryForm(this); } myQueryForm.ShowDialog(); }
public MainForm() { InitializeComponent(); mySettingForm = new SettingForm(this); myQueryForm = new QueryForm(this); Path = Program.GetStartupPath(); //启动日志 MyLog.richTextBox1 = richTextBox1; MyLog.path = Program.GetStartupPath() + @"LogData\"; MyLog.lines = 50; MyLog.start(); startDT = System.DateTime.Now; }