Example #1
0
        protected void InitializeTreesTab()
        {
#if NetCF
            _treeView = new ControlTreeDataGrid(DataService
                                                , AppSettings
                                                , this.LogicController)
            {
                Dock            = DockStyle.Fill,
                UserCanAddTrees = true,
                SIP             = SIP
            };
#else
            _treeView = new ControlTreeDataGrid(DataService
                                                , ApplicationSettings.Instance
                                                , this.LogicController);
#endif
            _treeView.UserCanAddTrees = true;

            _treePageIndex = AddLayout(_treeView);
        }
        protected void InitializeTreesTab()
        {
            _treePage = new TabPage();
            //this._treePage.SuspendLayout();
            _treePage.Text = "Trees";

            #if NetCF
            _treeView = new ControlTreeDataGrid(this.Controller
                , this.LogicController
                , this.SIP)
            {
                Dock = DockStyle.Fill,
                UserCanAddTrees = true
            };
            #else
            _treeView = new ControlTreeDataGrid(this.Controller, this.LogicController);
            #endif
            _treeView.Dock = DockStyle.Fill;

            _treeView.UserCanAddTrees = true;

            _treePage.Controls.Add(_treeView);
            this.PageContainer.TabPages.Add(_treePage);
            this._layouts.Add(_treeView);
        }