Binda.TreeViewBindaStrategy.SetControlValue C# (CSharp) Method

SetControlValue() public method

public SetControlValue ( Control control, object source, string propertyName ) : void
control System.Windows.Forms.Control
source object
propertyName string
return void
        public override void SetControlValue(Control control, object source, string propertyName)
        {
            var treeView = control as TreeView;
            if (treeView == null) return;
            var values = GetChildItems(source, propertyName);
            if (values == null) return;
            treeView.Nodes.AddRange(GetChildNodes(values, propertyName));
        }