private void CreateLayout(PageDataGroup dataGroup, PageGroup child) { for (int i = 0; i < dataGroup.Items.Count; i++) { CreateLayoutCore(dataGroup.Items[i], child, i); } }
private void buttonClick(object sender, DevExpress.XtraBars.Docking2010.ButtonEventArgs e) { PageDataGroup tileGroup = (e.Button.Properties.Tag as PageDataGroup); if (tileGroup != null) { windowsUIView.ActivateContainer(groupsItemDetailPage[tileGroup]); } }
public void CreateGroup(string name, string title, string subtitle, string imagePath, string description) { if (ContainsGroup(name)) { return; } PageDataGroup group = new PageDataGroup(name, title, subtitle, imagePath, description); groupsCore.Add(group); }
public GroupDetailPage(PageDataGroup 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); }
private PageGroup CreateGroupItemDetailPage(PageDataGroup 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); }
public bool AddItem(ArticleDataItem tile) { if (tile == null) { return(false); } string groupName = tile.GroupName == null ? "" : tile.GroupName; PageDataGroup thisGroup = GetGroup(groupName); if (thisGroup == null) { thisGroup = new PageDataGroup(groupName); groupsCore.Add(thisGroup); } return(thisGroup.AddItem(tile)); }