private static void plugins_Executed(object sender, PluginErrorEventArgs e) { if (e.HasErrors) { FormMessage.Error("Error Executing Plugins", "Failed to execute the following plugins:\n\n" + string.Join("\n\n", e.Errors), FormMessage.OK); } }
private static void plugins_Executed(object sender, PluginErrorEventArgs e) { if (e.HasErrors) { string doubleNL = Environment.NewLine + Environment.NewLine; MessageBox.Show("Failed to execute the following plugins:" + doubleNL + string.Join(doubleNL, e.Errors), "Error Executing Plugins", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private static void plugins_Reloaded(object sender, PluginErrorEventArgs e) { if (e.HasErrors) { string doubleNL = Environment.NewLine + Environment.NewLine; MessageBox.Show("The following plugins will not be available until the issues are resolved:" + doubleNL + string.Join(doubleNL, e.Errors), "Error Loading Plugins", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void plugins_Executed(object sender, PluginErrorEventArgs e) { if (e.HasErrors) { this.InvokeAsyncSafe(() => { FormMessage.Error("Error Executing Plugins", "Failed to execute the following plugins:\n\n" + string.Join("\n\n", e.Errors), FormMessage.OK); }); } }
private void plugins_Reloaded(object sender, PluginErrorEventArgs e) { if (e.HasErrors) { FormMessage.Error("Error Loading Plugins", "The following plugins will not be available until the issues are resolved:\n\n" + string.Join("\n\n", e.Errors), FormMessage.OK); } if (isLoaded) { browser.ReloadToTweetDeck(); } }
private void plugins_Reloaded(object sender, PluginErrorEventArgs e) { if (e.HasErrors) { this.InvokeAsyncSafe(() => { // TODO not needed but makes code consistent... FormMessage.Error("Error Loading Plugins", "The following plugins will not be available until the issues are resolved:\n\n" + string.Join("\n\n", e.Errors), FormMessage.OK); }); } if (isLoaded) { browser.ReloadToTweetDeck(); } }
// Event handlers private void manager_Reloaded(object sender, PluginErrorEventArgs e) { fileCache.Clear(); }
private void plugins_Reloaded(object sender, PluginErrorEventArgs e) { browser.GetBrowser().Reload(); }
private void pluginManager_Reloaded(object sender, PluginErrorEventArgs e) { tabBtnOfficial.Text = "Official: " + pluginManager.CountPluginByGroup(PluginGroup.Official); tabBtnCustom.Text = "Custom: " + pluginManager.CountPluginByGroup(PluginGroup.Custom); }