/// <summary> /// Adds a new property row. /// </summary> /// <param name="label">Property name.</param> /// <param name="prop">Property control.</param> /// <returns>Newly created row.</returns> public PropertyRow Add(string label, PropertyBase prop) { PropertyRow row = new PropertyRow(this, prop); row.Dock = Dock.Top; row.Label = label; row.ValueChanged += OnRowValueChanged; m_SplitterBar.BringToFront(); return(row); }
/// <summary> /// Adds a new property row. /// </summary> /// <param name="label">Property name.</param> /// <param name="prop">Property control.</param> /// <param name="value">Initial value.</param> /// <returns>Newly created row.</returns> public PropertyRow Add(string label, Property.PropertyBase prop, string value = "") { PropertyRow row = new PropertyRow(this, prop); row.Dock = Pos.Top; row.Label = label; row.ValueChanged += OnRowValueChanged; prop.SetValue(value, true); m_SplitterBar.BringToFront(); return(row); }