Ejemplo n.º 1
0
 public void DisableLogCapture()
 {
     if (EElogWatcher != null)
     {
         EElogWatcher.TextChanged -= LogChanged;
         EElogWatcher.Dispose();
         EElogWatcher = null;
     }
 }
Ejemplo n.º 2
0
 public void EnableLogcapture()
 {
     if (EElogWatcher == null)
     {
         try
         {
             EElogWatcher              = new LogCapture();
             EElogWatcher.TextChanged += LogChanged;
         }
         catch (Exception ex)
         {
             Main.AddLog("Failed to start logcapture, exception: " + ex);
             Main.StatusUpdate("Failed to start capturing log", 1);
         }
     }
 }