Ejemplo n.º 1
0
 private void CreateLayout(PageDataGroup dataGroup, PageGroup child)
 {
     for (int i = 0; i < dataGroup.Items.Count; i++)
     {
         CreateLayoutCore(dataGroup.Items[i], child, i);
     }
 }
Ejemplo n.º 2
0
        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]);
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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));
        }