Exemple #1
0
 /// <summary>
 /// Occurs when the class is Changed
 /// </summary>
 protected static void OnChanged(PluginInfo plugin)
 {
     if (Changed != null)
     {
         Changed(plugin, new EventArgs());
     }
 }
Exemple #2
0
        private void Main_Load(object sender, EventArgs e)
        {
            pluginInfo = new Dictionary<PluginType, PluginInfo>();

            while (PluginInfo.LoadAll().Count < 2)
            {
                OpenFileDialog file = new OpenFileDialog();
                DialogResult result = file.ShowDialog();
                if (result == DialogResult.OK)
                {
                    PluginInfo info = new PluginInfo(file.FileName);
                    info.Save();
                }
            }

            Collection<PluginInfo> plugins = PluginInfo.LoadAll();

            foreach (PluginInfo plugin in plugins)
            {
                pluginInfo.Add((PluginType)plugin.Type, plugin);
                comboAlgorithms.Items.Add(plugin.Name);
            }

            treeItems.ImageList = new ImageList();

            comboAlgorithms.SelectedIndex = 0;
            rdoOverwrite.Checked = true;
        }