Exemplo n.º 1
0
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     if (value is VariableValue) {
         VariableEditorForm vef = new VariableEditorForm();
         vef.Value = value as VariableValue;
         vef.Refresh();
         if (vef.ShowDialog() == DialogResult.OK) {
             return vef.Value;
         } else {
             return value;
         }
     } else {
         return value;
     }
 }
Exemplo n.º 2
0
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     if (value is VariableValue)
     {
         VariableEditorForm vef = new VariableEditorForm();
         vef.Value = value as VariableValue;
         vef.Refresh();
         if (vef.ShowDialog() == DialogResult.OK)
         {
             return(vef.Value);
         }
         else
         {
             return(value);
         }
     }
     else
     {
         return(value);
     }
 }