Ejemplo n.º 1
0
 public override object EditValue(System.ComponentModel.ITypeDescriptorContext context,
     IServiceProvider provider, object value)
 {
     var formula = value == null ? string.Empty : (string)value;
     var dlg = new FormulaEditForm(formula);
     return dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK ? dlg.Formula : value;
 }
Ejemplo n.º 2
0
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context,
                                         IServiceProvider provider, object value)
        {
            var formula = value == null ? string.Empty : (string)value;
            var dlg     = new FormulaEditForm(formula);

            return(dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK ? dlg.Formula : value);
        }