private void MonitoredFileChanged(object sender, System.IO.FileSystemEventArgs e) { if (!Option.AutoMonitorFile) { return; } bool bMonitoredFile = false; foreach (SHSmartCheckFile scf in SHGlobal.GetChecklist()) { if (scf.CheckType == SHSCF_Type.Both || scf.CheckType == SHSCF_Type.Server) { if (e.FullPath.ToUpper() == (SHGlobal.GetServerSystemFolder() + scf.FilePath).ToUpper()) { bMonitoredFile = true; break; } } if (scf.CheckType == SHSCF_Type.Both || scf.CheckType == SHSCF_Type.Client) { if (e.FullPath.ToUpper() == (SHGlobal.GetClientSystemFolder() + scf.FilePath).ToUpper()) { bMonitoredFile = true; break; } } } if (bMonitoredFile == true) { // 모든 모니터 중지 fsWatcher.EnableRaisingEvents = false; ShowSplashScreen(); staMain.Text = e.Name + " 파일이 변경되었습니다. 자동갱신했습니다."; fsWatcher.EnableRaisingEvents = true; } }
private void mnuOpenServerSystemFolder_Click(object sender, EventArgs e) { Process.Start(SHGlobal.GetServerSystemFolder()); }