Ejemplo n.º 1
0
 //lazy construction of instance
 public static BrewMonitorTimer GetInstance()
 {
     if (_uniqueInstance == null)
     {
         _uniqueInstance = new BrewMonitorTimer();
     }
     return(_uniqueInstance);
 }
 public void StartMonitoring(string filePath, string brandName, string brewNumber)
 {
     AddToWatchList(filePath, brandName, brewNumber);
     //MonitorBrews();
     if (!isMonitoring)
     {
         BrewMonitorTimer.StartBrewMonitor();
         isMonitoring = true;
     }
 }