Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
 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);
         });
     }
 }
Ejemplo n.º 5
0
        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();
            }
        }
Ejemplo n.º 6
0
        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();
            }
        }
Ejemplo n.º 7
0
        // Event handlers

        private void manager_Reloaded(object sender, PluginErrorEventArgs e)
        {
            fileCache.Clear();
        }
Ejemplo n.º 8
0
 private void plugins_Reloaded(object sender, PluginErrorEventArgs e)
 {
     browser.GetBrowser().Reload();
 }
Ejemplo n.º 9
0
 private void pluginManager_Reloaded(object sender, PluginErrorEventArgs e)
 {
     tabBtnOfficial.Text = "Official: " + pluginManager.CountPluginByGroup(PluginGroup.Official);
     tabBtnCustom.Text   = "Custom: " + pluginManager.CountPluginByGroup(PluginGroup.Custom);
 }