Example #1
0
 public GroupDetailPage(SampleDataGroup dataGroup, PageGroup child)
 {
     InitializeComponent();
     pageGroupCore = new PageGroup();
     pageGroupCore.Caption = dataGroup.Title;
     imageControl.Image = DevExpress.Utils.ResourceImageHelper.CreateImageFromResources(dataGroup.ImagePath, typeof(MainForm).Assembly);
     labelSubtitle.Text = dataGroup.Subtitle;
     labelDescription.Text = dataGroup.Description;
     CreateLayout(dataGroup, child);
 }
Example #2
0
 PageGroup CreateGroupItemDetailPage(SampleDataGroup group, PageGroup child)
 {
     GroupDetailPage page = new GroupDetailPage(group, child);
     PageGroup pageGroup = page.PageGroup;
     BaseDocument document = windowsUIView.AddDocument(page);
     pageGroup.Parent = tileContainer;
     pageGroup.Items.Add(document as Document);
     windowsUIView.ContentContainers.Add(pageGroup);
     windowsUIView.ActivateContainer(pageGroup);
     return pageGroup;
 }
Example #3
0
 public bool AddItem(SampleDataItem tile)
 {
     if (tile == null) return false;
     string groupName = tile.GroupName == null ? "" : tile.GroupName;
     SampleDataGroup thisGroup = GetGroup(groupName);
     if (thisGroup == null)
     {
         thisGroup = new SampleDataGroup(groupName);
         groupsCore.Add(thisGroup);
     }
     return thisGroup.AddItem(tile);
 }
Example #4
0
 public void CreateGroup(string name, string title, string subtitle, string imagePath, string description)
 {
     if (ContainsGroup(name)) return;
     SampleDataGroup group = new SampleDataGroup(name, title, subtitle, imagePath, description);
     groupsCore.Add(group);
 }
Example #5
0
 void CreateLayout(SampleDataGroup dataGroup, PageGroup child)
 {
     for (int i = 0; i < dataGroup.Items.Count; i++)
         CreateLayoutCore(dataGroup.Items[i], child, i);
 }