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)); }
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(); } }