// /// <include file='doc\ObjectSelectorEditor.uex' path='docs/doc[@for="ObjectSelectorEditor.Selector.OnAfterSelect"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> protected void OnAfterSelect(object sender, TreeViewEventArgs e) { if (clickSeen) { editor.SetValue(((SelectorNode)SelectedNode).value); if (editor.EqualsToValue(((SelectorNode)SelectedNode).value)) { edSvc.CloseDropDown(); } clickSeen = false; } }
/// <summary> /// Returns true if the given node was selected; false otherwise. /// </summary> private bool ChooseSelectedNodeIfEqual() { if (_editor != null && _edSvc != null) { _editor.SetValue(((SelectorNode)SelectedNode).value); if (_editor.EqualsToValue(((SelectorNode)SelectedNode).value)) { _edSvc.CloseDropDown(); return(true); } } return(false); }