public override void SetParameter(MethodDef.Param param, object obj, bool bReadonly) { base.SetParameter(param, obj, bReadonly); DesignerBoolean boolAtt = param.Attribute as DesignerBoolean; if (boolAtt != null) { checkBox.Checked = (bool)param.Value; } }
public override void SetProperty(DesignerPropertyInfo property, object obj) { base.SetProperty(property, obj); DesignerBoolean boolAtt = property.Attribute as DesignerBoolean; if (boolAtt != null) { checkBox.Checked = (bool)property.Property.GetValue(obj, null); } }