private void TreeControl_OnTreeNodeSelectEvent(object sender, TreeNodeSelectEventArgs e) { try { OnSelectObject(e.SelectedOblect); } catch (Exception ex) { Log.ShowError(ex); } }
virtual protected void OnItemActivated() { if (SelectedNode != null && SelectedNode.Tag != null) { TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs(); e.SelectedOblect = SelectedNode.Tag; e.DbClick = true; this.OnTreeNodeSelectEvent(this, e); } }
virtual protected void OnItemActivated() { if (SelectedNode != null && SelectedNode.Tag != null) { TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs(); object x = (SelectedNode.Tag is TreeObjectWrap) ? (SelectedNode.Tag as TreeObjectWrap).Tag : SelectedNode.Tag; e.SelectedOblect = x; e.DbClick = true; this.OnTreeNodeSelectEvent(this, e); } }
virtual protected void OnItemSelected() { if (SelectedNode != null) { TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs(); if (SelectedNode.Tag != null) { e.SelectedOblect = SelectedNode.Tag; } if (OnTreeNodeSelectEvent != null) { this.OnTreeNodeSelectEvent(this, e); } } }
virtual protected void OnItemSelected() { if (SelectedNode != null) { TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs(); if (SelectedNode.Tag != null) { object x = (SelectedNode.Tag is TreeObjectWrap) ? (SelectedNode.Tag as TreeObjectWrap).Tag : SelectedNode.Tag; e.SelectedOblect = x; } if (OnTreeNodeSelectEvent != null) { this.OnTreeNodeSelectEvent(this, e); } } }