Beispiel #1
0
        private void LoadConfig()
        {
            config = new SDRSharpConfig(Path.Combine(Directory.GetCurrentDirectory(), ConfigFileName));

            // Fill listPlugins
            foreach (KeyValuePair <string, string> pluginData in config.GetSharpPlugins())
            {
                string[] descriptors  = pluginData.Value.Split(',');
                string   typeName     = descriptors[0];
                string   assemblyName = descriptors[1];

                ListViewItem pluginItem = new ListViewItem(pluginData.Key);
                listPlugins.Items.Add(pluginItem);

                pluginItem.SubItems.Add(typeName);
                pluginItem.SubItems.Add(assemblyName);
            }
            FitColumns();
        }
        private void LoadConfig() {
            config = new SDRSharpConfig(Path.Combine(Directory.GetCurrentDirectory(), ConfigFileName));

            // Fill listPlugins
            foreach (KeyValuePair<string, string> pluginData in config.GetSharpPlugins()) {
                string[] descriptors = pluginData.Value.Split(',');
                string typeName = descriptors[0];
                string assemblyName = descriptors[1];

                ListViewItem pluginItem = new ListViewItem(pluginData.Key);
                listPlugins.Items.Add(pluginItem);
                
                pluginItem.SubItems.Add(typeName);
                pluginItem.SubItems.Add(assemblyName);
            }
            FitColumns();
        }