private void m_propertyGrid_PropertyValueChanging(object sender, DevComponents.DotNetBar.PropertyValueChangingEventArgs e)
        {
            Node n = m_propertyGrid.SelectedObject as Node;

            if (n == null)
            {
                return;
            }

            m_actChangeProperty = new Action_PropertyChange(n);
        }
Esempio n. 2
0
 /// <summary>
 /// Invokes PropertyValueChanging event.
 /// </summary>
 /// <param name="e">Event data.</param>
 protected virtual void OnPropertyValueChanging(PropertyValueChangingEventArgs e)
 {
     PropertyValueChangingEventHandler handler = PropertyValueChanging;
     if (handler != null) handler(this, e);
 }
Esempio n. 3
0
 internal bool InvokePropertyValueChanging(string propertyName, object newValue)
 {
     PropertyValueChangingEventArgs e = new PropertyValueChangingEventArgs(propertyName, newValue);
     OnPropertyValueChanging(e);
     return e.Handled;
 }