private void btnReload_Click(object sender, EventArgs e) { IAddon notifications = AddonManager.GetAddon("Notifications"); notifications.Dispose(); notifications.Initialize(); }
/// <summary> /// Initialize and register an addon /// </summary> /// <param name="addon"></param> private static void RegisterAddon(IAddon addon) { // initialize addon.Initialize(); // add AddonsDictionary.Add(addon.Name, addon); // if this addon has a tab, add it if (addon.HasTab) { TabsDictionary.Add(addon, addon.TabPage); } // if this addon has a settings page, add it if (addon.HasConfig) { SettingsDictionary.Add(addon, addon.ConfigPage); } }