コード例 #1
0
ファイル: PanelBar.cs プロジェクト: wanaxe/Study
        public PanelBar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
            : base(viewContext, initializer)
        {
            Authorization = authorization;
            UrlGenerator  = urlGenerator;

            Animation = new ExpandableAnimation();

            ExpandMode    = PanelBarExpandMode.Multiple;
            HighlightPath = true;

            Items = new LinkedObjectCollection <PanelBarItem>(null);

            SelectedIndex    = -1;
            SecurityTrimming = new SecurityTrimming();
        }
コード例 #2
0
ファイル: TreeView.cs プロジェクト: wanaxe/Study
        public TreeView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
            : base(viewContext, initializer)
        {
            UrlGenerator  = urlGenerator;
            Authorization = authorization;

            Animation = new ExpandableAnimation();

            this.DragAndDrop = false;

            Items = new LinkedObjectCollection <TreeViewItem>(null);

            SelectedIndex    = -1;
            SecurityTrimming = new SecurityTrimming();

            LoadOnDemand = true;

            Checkboxes = new TreeViewCheckboxesSettings();

            DataSource = new DataSource();

            AutoBind = true;
        }