SIL.FieldWorks.Common.Controls.ChooserTreeView.IsNodeSelected C# (CSharp) Method

IsNodeSelected() protected method

Gets a value indicating whether or not the specified node is selected. For it to be selected, it has to checked while its parent is not.
protected IsNodeSelected ( TreeNode node ) : bool
node System.Windows.Forms.TreeNode
return bool
		protected virtual bool IsNodeSelected(TreeNode node)
		{
			return (GetChecked(node) == CheckState.Checked &&
				(node.Parent == null || GetChecked(node.Parent) != CheckState.Checked));
		}