示例#1
0
文件: MainForm2.cs 项目: bakuuu/meteo
        private void ShowControl(NodeInfo nodeInfo)
        {
            switch (nodeInfo.Name)
            {

                case "analisys1":
                    XtraUserControl control = ControlFactory<Analisys1>.ShowControl(nodeInfo.Name, dockPanel2, userControlsDictionary);
                    break;

                case "analisys2":

                    XtraUserControl control2 = ControlFactory<Analisys2>.ShowControl(nodeInfo.Name, dockPanel2, userControlsDictionary);
                    break;

                default:
                    break;

            }
        }
示例#2
0
文件: MainForm2.cs 项目: bakuuu/meteo
        private void MyInit()
        {
            NodeInfo rootData1 = new NodeInfo("analisys1", "Analiza1");
            TreeListNode rootNode1 = menuTreeList.AppendNode(rootData1, null);
            rootNode1.SetValue(0, rootData1);

            NodeInfo rootData2 = new NodeInfo("analisys2", "Analiza2");
            TreeListNode rootNode2 = menuTreeList.AppendNode(rootData2, null);
            rootNode2.SetValue(0, rootData2);

            NodeInfo rootData3 = new NodeInfo("analisys3", "Analiza3");
            TreeListNode rootNode3 = menuTreeList.AppendNode(rootData3, null);
            rootNode3.SetValue(0, rootData3);

            NodeInfo rootData4 = new NodeInfo("analisys4", "Analiza4");
            TreeListNode rootNode4 = menuTreeList.AppendNode(rootData4, null);
            rootNode4.SetValue(0, rootData4);

               // rootNode.ImageIndex = 8;
               // rootNode.SelectImageIndex = 8;
        }