示例#1
0
 private void 数据查询和回放ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (myQueryForm != null)
     {
         myQueryForm.Activate();
     }
     else
     {
         myQueryForm = new QueryForm(this);
     }
     myQueryForm.ShowDialog();
 }
示例#2
0
        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;
        }