public static bool reset() { try { GeneralFileWatcher.GetInstance().Stop(); FolderMonitor.GetInstance().EndMonitoring(); ProgramWatcher.GetInstance().EndMonitoring(); Renamereset(); Createreset(); clear(); return(true); } catch (Exception exc) { MessageBox.Show(exc.Message, "REsert error", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } }
private void metroButton7_Click_1(object sender, EventArgs e) { ProgramButton.Text = "MONITORING"; ProgramWatcher.GetInstance().StartMonitoring(); ProgramButton.Enabled = false; }