Exemplo n.º 1
0
 private void CleaningTimer_Tick(object sender, EventArgs e)
 {
     LISLogBox.Clear();
     MacLogBox.Clear();
     LogPrint("定时清理程序垃圾缓存开始", 2);
     ClearMemoryInfo.FlushMemory();
     LogPrint("定时清理程序垃圾缓存完成", 2);
 }
Exemplo n.º 2
0
 private void LogPathTimer_Tick(object sender, EventArgs e)
 {
     try
     {
         string tmppath = logpath;
         if (!Directory.Exists(Application.StartupPath + "\\logs\\"))
         {
             Directory.CreateDirectory(Application.StartupPath + "\\logs\\");
         }
         logpath = Application.StartupPath + "\\logs\\" + System.DateTime.Now.ToString("yyyyMMdd") + ".log";
         if (logpath != tmppath && tmppath != null)
         {
             fsw.Close();
             fsw = new FileStream(logpath, FileMode.Append);
             MacLogBox.Clear();
             LISLogBox.Clear();
         }
     }
     catch (Exception ex)
     {
         FrmTips.ShowTipsError(this, "获取日志路径出错:" + ex.Message);
     }
 }
Exemplo n.º 3
0
 private void ucBtnExt4_BtnClick(object sender, EventArgs e)
 {
     MacLogBox.Clear();
     FrmTips.ShowTipsInfo(this, "清除仪器通信日志");
 }
Exemplo n.º 4
0
 private void 清空窗口日志ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LISLogBox.Clear();
     MacLogBox.Clear();
     FrmTips.ShowTipsInfo(this, "清除日志窗口");
 }