Beispiel #1
0
 private void m_CustomProperty_SetValue(object sender, PropertySpecEventArgs e)
 {
     string text = this.m_PropertyGridName + "/" + e.Property.Name + "/" + e.Property.Category;
     string categoryPath = PropertyComboBox.getComboBoxID(this.m_PropertyGridName, e.Property.Category, e.Property.Name);
     object obj2 = PropertyComboBox.getSelectedValue(categoryPath);
     obj2 = PropertyComboBox.getSelectedKey(categoryPath);
     if (this.m_PropertyGridName != null)
     {
         PropertyInfo property = this.m_editPropModel.GetType().GetProperty(e.Property.ProertyName);
         if (property != null)
         {
             property.SetValue(this.m_editPropModel, obj2.ToString(), null);
         }
     }
 }
Beispiel #2
0
 public virtual void OnSetValue(PropertySpecEventArgs e)
 {
     if (this.SetValue != null)
     {
         this.SetValue(this, e);
     }
 }
Beispiel #3
0
 private void m_CustomProperty_GetValue(object sender, PropertySpecEventArgs e)
 {
     CustomProperty property = sender as CustomProperty;
     PropertyInfo info = this.m_editPropModel.GetType().GetProperty(e.Property.ProertyName);
     if (info != null)
     {
         e.Value = info.GetValue(this.m_editPropModel, null);
     }
 }