Beispiel #1
0
 void RearrangeExamples(List <CodeExampleGroup> examples)
 {
     for (int i = 0; i < examples.Count; i++)
     {
         CodeExampleGroup group = examples[i];
         if (group.Name == "Pivot Table Actions")
         {
             examples.RemoveAt(i);
             examples.Insert(0, group);
             break;
         }
     }
 }
        void treeList_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo args)
        {
            CodeExampleGroup group = args.Node as CodeExampleGroup;

            if (group != null)
            {
                args.CellData = group.Name;
            }

            CodeExample example = args.Node as CodeExample;

            if (example != null)
            {
                args.CellData = example.RegionName;
            }
        }
 void treeList_VirtualTreeGetChildNodes(object sender, VirtualTreeGetChildNodesInfo args)
 {
     if (treeListRootNodeLoading)
     {
         args.Children           = examples;
         treeListRootNodeLoading = false;
     }
     else
     {
         if (args.Node == null)
         {
             return;
         }
         CodeExampleGroup group = args.Node as CodeExampleGroup;
         if (group != null)
         {
             args.Children = group.Examples;
         }
     }
 }
 void SuppressExamples(List <CodeExampleGroup> examples)
 {
     for (int i = 0; i < examples.Count; i++)
     {
         CodeExampleGroup group = examples[i];
         if (group.Name == "View Options Actions")
         {
             for (int j = 0; j < group.Examples.Count; j++)
             {
                 CodeExample example = group.Examples[j];
                 if (example.RegionName == "Smooth Lines")
                 {
                     group.Examples.RemoveAt(j);
                     break;
                 }
             }
             break;
         }
     }
 }
 void RearrangeExamples(List <CodeExampleGroup> examples)
 {
     for (int i = 0; i < examples.Count; i++)
     {
         CodeExampleGroup group = examples[i];
         if (group.Name == "Charts")
         {
             examples.RemoveAt(i);
             examples.Insert(0, group);
             break;
         }
     }
     for (int i = 0; i < examples.Count; i++)
     {
         CodeExampleGroup group = examples[i];
         if (group.Name.StartsWith("Creation"))
         {
             examples.RemoveAt(i);
             examples.Insert(1, group);
             break;
         }
     }
 }