示例#1
0
 public CustomerEdit(CustomerEditObject editObject, ModuleObjectDetail detail)
     : base(editObject, detail)
 {
     PersonGenderEditData   = new PersonGenderEditData();
     DiscountLevelEditData  = new DiscountLevelEditData();
     MembershipTypeEditData = new MembershipTypeEditData();
 }
示例#2
0
 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);
 }