Beispiel #1
0
        private void MakeTransfer()
        {
            int userId     = actualUser.ID;
            int senderId   = SenderBoxSelected.ID;
            int adressedId = AdressedBoxSelected.ID;

            if (CheckErrorsInTransfer())
            {
                if (BDComun.MakeTransfer(userId, senderId, adressedId, AmountToTransfer))
                {
                    MostrarMensaje("Monto transferido");

                    BDComun.ReloadCashbox(SenderBoxSelected);
                    BDComun.ReloadCashbox(AdressedBoxSelected);
                    BDComun.ReloadUser(actualUser);

                    SenderBoxSelected = null;
                    AmountToTransfer  = 0m;
                }
                else
                {
                    MostrarMensaje(BDComun.Error);
                }
            }
        }