Exemple #1
0
 private void 系统设置ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MyLog.Info("进行系统设置");
     if (mySettingForm != null)
     {
         mySettingForm.Activate();
     }
     else
     {
         mySettingForm = new SettingForm(this);
     }
     mySettingForm.ShowDialog();
 }
Exemple #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;
        }