Esempio n. 1
0
        public static void InitSerializePluginInfo(LACTreeNode pluginNode, IPlugIn ip, ref int Id, out XmlElement viewElement, XmlElement ViewsNode, TreeNode SelectedNode)
        {
            viewElement = null;

            viewElement = ViewsNode.OwnerDocument.CreateElement("View");
            viewElement.SetAttribute("NodeID", Id.ToString());
            viewElement.SetAttribute("NodeName", pluginNode.Name);
            viewElement.SetAttribute("NodeDll", ip.GetPluginDllName());
            if (pluginNode.Equals(SelectedNode))
                viewElement.SetAttribute("NodeSelected", true.ToString());
            else
                viewElement.SetAttribute("NodeSelected", false.ToString());
            Id++;
        }