private void UIButtonRemoveCardAccount_Click(object sender, RoutedEventArgs e)
        {
            OpOp.RemoveCardAccount.IdCardAccount = UIFindCardAccount.IdCardAccount;

            if (OpOp.RemoveCardAccount.Execute())
            {
                UICardAccountForm.ClearUI();
            }
            UIMessage.TextMessage = OpOp.RemoveCardAccount.Information;
        }
        private void UIButtonAddCardAccount_Click(object sender, RoutedEventArgs e)
        {
            OpOp.RegistrationCardAccount.CardAccountName   = UICardAccountForm.Namee;
            OpOp.RegistrationCardAccount.CardAccountStatus = OpOp.DataSource.CardStatusUnLocked;
            OpOp.RegistrationCardAccount.CardType          = UICardAccountForm.Type;
            OpOp.RegistrationCardAccount.ExpiredDate       = UICardAccountForm.ExpiredDate;
            OpOp.RegistrationCardAccount.IdBankAccount     = UIFindBankAccount.IdBankAccount;

            if (OpOp.RegistrationCardAccount.Execute())
            {
                UICardAccountForm.ClearUI();
            }
            UIMessage.TextMessage = OpOp.RegistrationCardAccount.Information;
        }
        private void UIEditBt_Click(object sender, RoutedEventArgs e)
        {
            OpOp.EditCardAccount.CardAccountName   = UICardAccountForm.Namee;
            OpOp.EditCardAccount.CardAccountNumber = UICardAccountForm.Number;
            OpOp.EditCardAccount.CardAccountStatus = UICardAccountForm.Status;
            OpOp.EditCardAccount.CardType          = UICardAccountForm.Type;
            OpOp.EditCardAccount.ExpiredDate       = UICardAccountForm.ExpiredDate;
            OpOp.EditCardAccount.IdBankAccount     = UIFindBankAccount.IdBankAccount;
            OpOp.EditCardAccount.IdCardAccount     = UIFindCardAccount.IdCardAccount;
            OpOp.EditCardAccount.IdClient          = UIFindClient.IdClient;
            OpOp.EditCardAccount.IsLocked          = UICardAccountForm.IsLock;

            if (OpOp.EditCardAccount.Execute())
            {
                UICardAccountForm.ClearUI();
            }
            UIMessage.TextMessage = OpOp.EditCardAccount.Information;
        }
Example #4
0
 public void ClearUI()
 {
     UICardAccountForm.ClearUI();
     ClearUIThis();
 }