예제 #1
0
        private void InitializePlugInTab()
        {
            PluginListDialog();
            Cursor = Cursors.WaitCursor;
            try {
                _internalUpdate = true;
                _lastRow        = NoRow;
                dgvPlugIns.Rows.Clear();
                foreach (XmlNode node in _setupData.GetAllPluginData())
                {
                    var plugin = node.Attributes != null && (node.Attributes[PlugInAttrName] != null)
                        ? OutputPlugins.FindPlugin(node.Attributes[PlugInAttrName].Value, true)
                        : null;

                    if (plugin == null)
                    {
                        continue;
                    }

                    InitializePlugin(plugin, node);
                    AddPlugInRow(node, plugin);
                }
                _internalUpdate = false;
            }
            finally {
                Cursor          = Cursors.Default;
                _internalUpdate = true;
                dgvPlugIns.Focus();
                _internalUpdate = false;
                SetPluginsTabButtons();
            }
        }