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; }
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); }