Exemple #1
0
 public void Initialize(bool configOnly, bool resetSettings = false)
 {
     try
     {
         if (!configOnly && !resetSettings)
         {
             Loop = true;
         }
         MyPluginClass.Init();
     }
     catch (Exception e)
     {
         Logging.WriteError("IPlugins.Main.Initialize(bool configOnly, bool resetSettings = false): " + e);
     }
     Logging.Write(string.Format("The plugin {0} has stopped.", Name));
 }
Exemple #2
0
 public void Initialize(bool configOnly, bool resetSettings = false)
 {
     try
     {
         if (!configOnly && !resetSettings)
         {
             Loop = true;
         }
         MyPluginClass.Init();
     }
     catch (Exception e)
     {
         Logging.WriteError("IPlugins.Main.Initialize(bool configOnly, bool resetSettings = false): " + e);
     }
     if (Loop)
     {
         Dispose();
     }
 }