Пример #1
0
        public EGUITreeView(GridViewModel model)
        {
            ViewState = new TreeViewState();
            ViewModel = model;

            treeView = new GridTreeView(ViewState, ViewModel)
            {
                OnDrawRowItem         = OnDrawRowItem,
                OnGetRowHeight        = GetRowHeight,
                OnItemContextClicked  = OnItemContextClicked,
                OnItemDoubleClicked   = OnItemDoubleClicked,
                OnItemSelectedChanged = OnItemSelectedChanged,
            };
            treeView.Reload();
        }
Пример #2
0
        public EGUIGridView(GridViewModel model, string[] columnTitles)
        {
            ViewState  = new TreeViewState();
            ViewModel  = model;
            ViewHeader = new GridViewHeader(columnTitles);

            treeView = new GridTreeView(ViewState, ViewHeader.GetTreeViewHeader(), ViewModel)
            {
                OnDrawColumnItem     = OnDrawColumnItem,
                OnGetRowHeight       = GetRowHeight,
                OnItemContextClicked = OnItemContextClicked,
                OnItemDoubleClicked  = OnItemDoubleClicked,
            };
            treeView.Reload();

            treeView.multiColumnHeader.ResizeToFit();
        }
Пример #3
0
        protected EGUITreeView()
        {
            ViewState = new TreeViewState();
            ViewModel = new GridViewModel();

            treeView = new GridTreeView(ViewState, ViewModel)
            {
                OnDrawRowItem         = OnDrawRowItem,
                OnGetRowHeight        = GetRowHeight,
                OnItemContextClicked  = OnItemContextClicked,
                OnItemDoubleClicked   = OnItemDoubleClicked,
                OnItemSelectedChanged = OnItemSelectedChanged,

                IsMultiSelect = false,
            };
            treeView.Reload();
        }
Пример #4
0
        public EGUIGridView(GridViewModel model, GridViewHeader header)
        {
            ViewState  = new TreeViewState();
            ViewModel  = model;
            ViewHeader = header;

            treeView = new GridTreeView(ViewState, header.GetTreeViewHeader(), ViewModel)
            {
                OnDrawColumnItem      = OnDrawColumnItem,
                OnGetRowHeight        = GetRowHeight,
                OnItemContextClicked  = OnItemContextClicked,
                OnItemDoubleClicked   = OnItemDoubleClicked,
                OnItemSelectedChanged = OnItemSelectedChanged,

                IsMultiSelect = false,
            };

            treeView.Reload();
            treeView.multiColumnHeader.ResizeToFit();
        }