예제 #1
0
        /// <summary>
        /// Displays information about the plugins passed across.
        /// </summary>
        /// <param name="plugins"></param>
        public void ShowPlugins(IEnumerable <IPlugin> plugins)
        {
            flowLayoutPanel.Controls.Clear();
            _PluginPanels.Clear();

            foreach (var plugin in plugins.OrderBy(p => p.Name))
            {
                var detailPanel = new PluginDetailPanel()
                {
                    Plugin = plugin
                };
                detailPanel.ConfigureClicked += Plugin_ConfigureClicked;
                flowLayoutPanel.Controls.Add(detailPanel);
                _PluginPanels.Add(detailPanel);
            }

            SetDetailPanelSizes();
        }
        /// <summary>
        /// Displays information about the plugins passed across.
        /// </summary>
        /// <param name="plugins"></param>
        public void ShowPlugins(IEnumerable<IPlugin> plugins)
        {
            flowLayoutPanel.Controls.Clear();
            _PluginPanels.Clear();

            foreach(var plugin in plugins.OrderBy(p => p.Name)) {
                var detailPanel = new PluginDetailPanel() { Plugin = plugin };
                detailPanel.ConfigureClicked += Plugin_ConfigureClicked;
                flowLayoutPanel.Controls.Add(detailPanel);
                _PluginPanels.Add(detailPanel);
            }

            SetDetailPanelSizes();
        }