private StringPropertyControl AddStringProperty(Grid grid, Node property, bool isConnectable) { StringPropertyControl control = new StringPropertyControl(property as ns.Base.Plugins.Properties.Property, isConnectable); control.TextChanged += StringPropertyControlTextChanged; SetControlGridPosition(control, grid); return control; }
private StringPropertyControl AddStringProperty(Grid grid, string name, string content) { StringPropertyControl control = new StringPropertyControl(name, content); control.Name = name; control.TextChanged += StringPropertyControlTextChanged; SetControlGridPosition(control, grid); return control; }