Ejemplo n.º 1
0
        private void Payment_Click(object sender, EventArgs e)
        {
            (new PaymentService()).ShowDialog();
            string Temp = (ClientsData.Current.AmountI).ToString() + "$";

            if (Temp != Amount.Text)
            {
                dataGridView1.Rows.Add("Payment For " + PayMent.Pay + " : ", PayMent.Value.ToString() + "$");
                ClientsLogs.AddLog("Payment For " + PayMent.Pay + " : ", PayMent.Value.ToString() + "$");
                Amount.Text = Temp;
                ClientsData.UpdateAccount();
            }
        }
Ejemplo n.º 2
0
        private void Withdrawal_Click(object sender, EventArgs e)
        {
            (new PayMent("Withdrawal")).ShowDialog();
            string Temp = (ClientsData.Current.AmountI).ToString() + "$";

            if (Temp != Amount.Text)
            {
                dataGridView1.Rows.Add("Withdrawal From The Account : ", PayMent.Value.ToString() + "$");
                ClientsLogs.AddLog("Withdrawal From The Account : ", PayMent.Value.ToString() + "$");
                Amount.Text = Temp;
                ClientsData.UpdateAccount();
            }
        }