XCore.SidebarAdapter.OnTreeNodeSelected C# (CSharp) Method

OnTreeNodeSelected() public method

public OnTreeNodeSelected ( object sender, TreeViewEventArgs arguments ) : void
sender object
arguments System.Windows.Forms.TreeViewEventArgs
return void
		public void OnTreeNodeSelected (object sender, TreeViewEventArgs arguments)
		{
			ChoiceBase control;
			if (arguments.Node.Tag is ChoiceGroup)
			{
				control = ((ChoiceGroup)arguments.Node.Tag).CommandChoice;
				if (control == null)
					return;//nothing to do then.
			}
			else
				control = (ChoiceBase)arguments.Node.Tag;
			control.OnClick(null, null);
		}