Exemplo n.º 1
0
 public UxTreeView()
 {
     DataColumn              = Columns.Add();
     DataColumn.Name         = "colInfo";
     DataColumn.FieldName    = _infoColumn;
     DataColumn.Visible      = true;
     DataColumn.VisibleIndex = 0;
     _allNodes                              = new Cache <string, TreeListNode>(_onMisingKey);
     FocusedNodeChanged                    += (o, e) => this.DoWithinLatch(() => onFocusedNodeChanged(o, e));
     MouseClick                            += mouseClickEvent;
     MouseDoubleClick                      += mouseDoubleClickEvent;
     BeforeExpand                          += beforeNodeExpand;
     NodeCellStyle                         += nodeCellStyleEvent;
     OptionsView.ShowColumns                = false;
     OptionsView.ShowIndicator              = false;
     OptionsView.ShowHorzLines              = false;
     OptionsView.ShowVertLines              = false;
     OptionsBehavior.Editable               = false;
     ShouldExpandAddedNode                  = true;
     UseLazyLoading                         = false;
     _toolTipMapper                         = new ToolTipPartsToSuperToolTipMapper();
     CustomDrawNodeCell                    += dxTreeViewCustomDrawNodeCell;
     ToolTipForNode                         = node => node.ToolTip;
     ToolTipController                      = new ToolTipController();
     ToolTipController.GetActiveObjectInfo += (o, e) => ShowToolTip(e);
 }
Exemplo n.º 2
0
 public ToolTipCreator(IRepresentationInfoRepository representationInfoRepository, IToolTipPartCreator toolTipPartCreator)
 {
     _representationInfoRepository = representationInfoRepository;
     _toolTipPartCreator           = toolTipPartCreator;
     _toolTipMapper = new ToolTipPartsToSuperToolTipMapper();
 }