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

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

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