public override void UpdateData()
        {
            base.UpdateData();


            MenuCell = new SideMenuCell(this);

            SideMenuListView?.UpdateDataSource(MenuManager.Instance.GetMenuItem());

            if (RootViewSide != null)
            {
                RootViewSide.Click -= MenuAction;
                RootViewSide.Click += MenuAction;
            }

            if (SideImage != null)
            {
                SideImage?.SetImageFromResource(DrawableConstants.MenuOpenIcon);
                SideImage?.SetSelected(ColorConstants.BlackColor);

                SideImage.Click -= MenuAction;
                SideImage.Click += MenuAction;
            }

            if (!SideContainer.IsNull())
            {
                SideContainer.SetBackgroundColor(ColorConstants.SelectorHome);

                SideContainer.Click += SideContainer_click;
                SideContainer.Click += SideContainer_click;
            }

            SideMenuListView?.UpdateDataSource(MenuManager.Instance.GetMenuItem());
            SetupHeaderView();
        }
Ejemplo n.º 2
0
        public static void SetTagsCloud(ControlCollection c, string label, TagCloud tagCloud)
        {
            if (tagCloud.Items == null || tagCloud.Items.Count == 0)
            {
                return;
            }
            var ServiceHelper = BookmarkingServiceHelper.GetCurrentInstanse();

            var tagsCloudContainer = new SideContainer()
            {
                Title    = label,
                ImageURL = WebImageSupplier.GetAbsoluteWebPath("tag_32.png", BookmarkingConst.BookmarkingId)
            };

            tagsCloudContainer.Controls.Add(tagCloud);
            c.Add(tagsCloudContainer);
        }