Пример #1
0
        public FenPrincipale()
        {
            InitializeComponent();

            plugins = new Dictionary<string, PluginInterface>();
            PluginLoader pl = new PluginLoader();
            ICollection<PluginInterface> items = pl.loadPlugins("Plugins");

            

            foreach (PluginInterface item in items)
            {
                plugins.Add(item.Site, item);
            }

            foreach (KeyValuePair<string, PluginInterface> item in plugins)
            {
                comboBox1.Items.Add(item.Key);
            }

            comboBox1.SelectedIndex = 0;
        }