Ejemplo n.º 1
0
        public override void BeforeSelection()
        {
            this.Children.Clear();
            List <BrowserData> datas = this.Service.getNavBrowserDatas();

            foreach (BrowserData data in datas)
            {
                NavBlock block = new NavBlock(data.name, NavigationToken.GetModifyViewToken(FunctionalitiesCode.REPORT_EDIT, data.oid));
                block.AllowRemoveHandlersWhenDispose = true;
                block.Background = (SolidColorBrush) new BrushConverter().ConvertFrom("#555555");
                this.Children.Add(block);
            }
        }
Ejemplo n.º 2
0
        protected NavBlock BuildBlock(String title, NavigationToken token = null)
        {
            NavBlock block = new NavBlock(title, token);

            return(block);
        }