예제 #1
0
      public static GroupList GenerateFakeMenus()
      {
          List <ListItem> items = new List <ListItem>();

          string appFolder    = Directory.GetCurrentDirectory() + "/";
          string appIcoFolder = "Content/ApplicationIcons/";
//            byte[] shapeImg = TextureUtil.ReadFile(appFolder + appIcoFolder + "shape.png");
//            byte[] formsImg = TextureUtil.ReadFile(appFolder + appIcoFolder + "forms.png");
//            byte[] rangeImg = TextureUtil.ReadFile(appFolder + appIcoFolder + "range.png");
//            byte[] storyboardImg = TextureUtil.ReadFile(appFolder + appIcoFolder + "storyboard.png");

//            items.Add(new ListItem2(8321, "Visual Shape", "Visual Shape", "Shape/ViewShape.xaml?id=New Shape",
//                                    appIcoFolder + "shape.png", shapeImg));


//            items.Add(
//                new ListItem2(7121, "Visual Range", "Visual Range",
//                              "Range/List.xaml",
//                              appIcoFolder + "range.png", rangeImg));
//
//            items.Add(
//                new ListItem2(639, "Form Editor", "Form Editor",
//                              "FormEditor/LoadForm.xaml?name=",
//                              appIcoFolder + "forms.png", formsImg));
//
//
//            items.Add(
//                new ListItem2(8121, "Tag Values", "Tag Values",
//                              "TagValues/List.xaml",
//                              appIcoFolder + "range.png", rangeImg));
//
//
//            items.Add(
//                new ListItem2(8123, "Visual Analysis", "Visual Analysis",
//                              "Analysis/Index.xaml",
//                              appIcoFolder + "shape.png", shapeImg));
//
//            items.Add(
//               new ListItem2(8125, "Storyboard", "Visual Storyboard",
//                             "Storyboard/Index.xaml",
//                             appIcoFolder + "Storyboard.png", storyboardImg));

//            items.Add(
//                new ListItem2(721, "Lookup Type", "Lookup Type",
//                  "LookupTypes/Index.xaml",
//                  appIcoFolder + "forms.png", formsImg));
//
//                items.Add(
//        new ListItem2(821, "Lookup", "Lookup",
//          "Lookups/Index.xaml",
//          appIcoFolder + "forms.png", formsImg));



          GroupList group = new GroupList();

          group.Group(items, "Group", "ParentGroup", null, null, null);

          return(group);
      }