Example #1
0
		protected virtual void OnKeyPress(TreeKeyPressEventArgs e) {
			if (KeyPress != null)
				KeyPress(this, e);
		}
Example #2
0
		private bool RaiseKeyPress(int keyCode) {
			var e = new TreeKeyPressEventArgs { KeyCode = keyCode };
			OnKeyPress(e);
			return !e.PreventDefault;
		}