Пример #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;
 }
Пример #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);
        }