示例#1
0
 private void buttonBack_Click(object sender, EventArgs e)
 {
     //Take the user to the New Customer Information Add screen
     //Remove all Identities data from the customer being edited
     //and if its an existing customer add back the identities that already exists for
     //this customer..This step is done to remove the newly added identity
     _newCustomer.removeIdentities();
     if (_currentCustomer != null)
     {
         foreach (var ident in _currentCustomer.getAllIdentifications())
         {
             _newCustomer.addIdentity(ident);
         }
     }
     GlobalDataAccessor.Instance.DesktopSession.MPCustomer  = _newCustomer;
     GlobalDataAccessor.Instance.DesktopSession.MPNameCheck = _nameCheck;
     this.NavControlBox.IsCustom     = true;
     this.NavControlBox.CustomDetail = "ManagePawnApplication";
     this.NavControlBox.Action       = NavBox.NavAction.BACKANDSUBMIT;
 }