Beispiel #1
0
        /// <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.Control 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;
        }
Beispiel #2
0
        /// <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.Control 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);
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyRowLabel"/> class.
 /// </summary>
 /// <param name="parent">Parent control.</param>
 public PropertyRowLabel(PropertyRow parent)
     : base(parent)
 {
     Alignment = Pos.Left | Pos.CenterV;
     m_PropertyRow = parent;
 }