Esempio n. 1
0
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     BlockLimitConfig form = new BlockLimitConfig(DedicatedConfigDefinition.Limits);
     var result = form.ShowDialog();
     if (result == DialogResult.OK)
         DedicatedConfigDefinition.Limits = form.BlockLimits;
     return value;
 }
Esempio n. 2
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            BlockLimitConfig form = new BlockLimitConfig(DedicatedConfigDefinition.Limits);
            var result            = form.ShowDialog();

            if (result == DialogResult.OK)
            {
                DedicatedConfigDefinition.Limits = form.BlockLimits;
            }
            return(value);
        }