private void LoadPluginSavedInConfig() { if (ConfigurationManager.AppSettings["pluginSelected"] != " ") { FormLoadPlugin loadPlugin = new FormLoadPlugin(_plugin); loadPlugin.OnError += new EventHandler <EventArgsString>(catchError); _plugin = loadPlugin.Plugin; LoadFromFile(); UpdateListView(); } }
private void OpenFormLoadPlugin() { FormLoadPlugin loadPlugin = new FormLoadPlugin(_plugin); loadPlugin.OnError += new EventHandler <EventArgsString>(catchError); DialogResult result = loadPlugin.ShowDialog(); if (result == DialogResult.OK && _checkChanges == true) { InvokeSaveRequest(); } _plugin = loadPlugin.Plugin; if (_plugin != null) { LoadFromFile(); UpdateListView(); } }