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 metroButton5_Click_1(object sender, EventArgs e)
 {
     FileButton.Text = "MONITORING"; GeneralFileWatcher.GetInstance().Start(); FileButton.Enabled = false;
 }