public SettingHelper(string p, string p_2, string p_3, string p_4, string p_5, DataObjectForm frmCodeMaker, string p_6, bool p_7) { // TODO: Complete member initialization this.p = p; this.p_2 = p_2; this.p_3 = p_3; this.p_4 = p_4; this.p_5 = p_5; this.frmDataObjectForm = frmCodeMaker; this.p_6 = p_6; this.p_7 = p_7; }
/// <summary> /// Toggle the allow insert property. /// </summary> private void ToggleIncludeRequiredValidation() { // Get a reference to the parent designer's associated control DataObjectForm ctl = (DataObjectForm)_parent.Component; // Get a reference to the control's LargeText property PropertyDescriptor propDesc = TypeDescriptor.GetProperties(ctl)["IncludeRequiredValidation"]; // Get the current value of the property bool v = (bool)propDesc.GetValue(ctl); // Toggle the property value propDesc.SetValue(ctl, !v); }