예제 #1
0
 private void LoadPluginSavedInConfig()
 {
     if (ConfigurationManager.AppSettings["pluginSelected"] != " ")
     {
         FormLoadPlugin loadPlugin = new FormLoadPlugin(_plugin);
         loadPlugin.OnError += new EventHandler <EventArgsString>(catchError);
         _plugin             = loadPlugin.Plugin;
         LoadFromFile();
         UpdateListView();
     }
 }
예제 #2
0
        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();
            }
        }