how to transfer from checking account? : i'm Working on this program since yesterday but i do not know where i'm doing wrong the problem is When, i start the program and entering the amount to transfer from Checking Account to Saving Account, the program subtract the entered amount from the Chequing account, but does not add to the Saving account. How can i fix this please if you can help with i really appreciate your help ?

   
  
    public partial class Transfer : Window
    {
        private string PIN;
        Accounts AccountsList = new Accounts();

        //constructor
        public Transfer(string pin, Accounts myAcounts)
        {
            InitializeComponent();
            AccountsList = myAcounts;
            PIN = pin;
        }

        //save to file method
        public void saveToFile()
        {
            using (StreamWriter sw = new StreamWriter("Acounts.txt"))
            {
                for (int i = 0; i < AccountsList.Count; i++)
                {
                    var data = new List<string>
                    {
                        AccountsList[i].ACCOUNTYPE.ToString()
                        ,AccountsList[i].PIN
                        ,AccountsList[i].ACCOUNTNUMBER
                        ,AccountsList[i].ACCOUNTBALANCE.ToString()
                    };

                    var account = String.Join(";", data);
                    sw.WriteLine(account);
                }
            }
        }

        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                string txtAmount = txtAmountInTransfer.Text;
                double amount = 0;

                bool AmountCorrect = double.TryParse(txtAmount, out amount);

                Account chequingAccount = new Account();
                Account savingAccount = new Account();

                //deposit from CHEQUING ACCOUNT to SAVING ACCOUNT
                {
                    //validate user entries

                    for (int i = 0; i < AccountsList.Count; i++)
                    {
                        //withdraw from CHEQUING ACCOUNG
                        if (AccountsList[i].ACCOUNTYPE == 'C' && AccountsList[i].PIN == PIN)
                        {
                            if (rbChequing_to_Saving.IsChecked == true)
                            {
                                chequingAccount = AccountsList[i];
                            }
                            else
                            {
                                savingAccount = AccountsList[i];
                            }

                            chequingAccount.ACCOUNTBALANCE -= amount;
                            AccountsList[i].ACCOUNTBALANCE += amount;
                            
                           
                            //saveToFile();
                            //break;

                        }
                        //if (AccountsList[i].ACCOUNTYPE == 'S')
                        //    savingAccount.ACCOUNTBALANCE += amount;

                        //saveToFile();
                    }

                  
                }


            }
            catch (Exception error)
            {
                MessageBox.Show(error.Message);
            }
        }


    }
}


