public CustomerEdit(CustomerEditObject editObject, ModuleObjectDetail detail) : base(editObject, detail) { PersonGenderEditData = new PersonGenderEditData(); DiscountLevelEditData = new DiscountLevelEditData(); MembershipTypeEditData = new MembershipTypeEditData(); }
internal override bool ReleaseSubobject(EditableSubobject editableSubobject) { if (base.ReleaseSubobject(editableSubobject)) { return(true); } if (editableSubobject == _customerEditObject) { _customerEditObject = null; return(true); } if (editableSubobject == _customerAddMemberEditObject) { _customerAddMemberEditObject = null; return(true); } if (editableSubobject == _customerMemberEditObject) { _customerMemberEditObject = null; return(true); } return(false); }