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 metroButton6_Click(object sender, EventArgs e)
 {
     FolderButton.Text = "MONITORING"; FolderMonitor.GetInstance().StartMonitoring(); FolderButton.Enabled = false;
 }