Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Trim() == "")
            {
                MessageBox.Show("Error Please Write  your Rupees/dollars in deposit Box ", "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
                x = true;
                return;
            }
            else if (lowbalance > Convert.ToDecimal(textBox1.Text))
            {
                MessageBox.Show("Error Cannot Deposit Less Than Rs.500 in  deposit Box ", "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
                x = true;
                return;
            }
            else if (highbalance < Convert.ToDecimal(textBox1.Text))
            {
                MessageBox.Show("Error Cannot Deposit More Than Rs.50000 in Deposit Box  ", "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
                x = true;
                return;
            }


            else
            {
                x = false;

                decimal get = balance(initialtotalbalance.Text);
                if (xx == false)
                {
                    blnce += balance(textBox1.Text);
                    blnce += balance(initialtotalbalance.Text);
                    Resett();
                    MessageBox.Show("Your Balance Has Been Added Now Deposit The Balance By CLicking The Deposit Button ", "Deposit It !", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    //balance1 += blnce;
                    initialtotalbalance.Text = blnce.ToString();
                    Depositbutton1.Enabled   = true;
                    xx = true;
                    return;
                }
                else
                {
                    blnce += balance(textBox1.Text);
                    MessageBox.Show("Your Balance Has Been Added Now Deposit The Balance By CLicking The Deposit Button ", "Deposit It !", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Depositbutton1.Focus();
                    initialtotalbalance.Text = blnce.ToString();
                    Depositbutton1.Enabled   = true;
                }
                //deposit();
            }
            if (x == false)
            {
            }
        }
Ejemplo n.º 2
0
 private void showw()
 {
     Depositbutton1.Show();
     textBox1.Show();
     button1.Show();
     Transaction.Hide();
     TransactiotextBox2.Hide();
     richTextBox1.Show();
     label5.Hide();
     transactionlabel.Hide();
     label2.Show();
     richTextBox2.Hide();
     button6.Hide();
     button7.Hide();
     button8.Show();
     button9.Show();
 }
Ejemplo n.º 3
0
 private void hidee()
 {
     TransactiotextBox2.Hide();
     Depositbutton1.Hide();
     Transaction.Hide();
     button1.Hide();
     textBox1.Hide();
     label5.Hide();
     richTextBox1.Hide();
     richTextBox2.Hide();
     transactionlabel.Hide();
     label2.Hide();
     button6.Hide();
     button7.Hide();
     button8.Hide();
     button9.Hide();
 }
Ejemplo n.º 4
0
 private void show2()
 {
     Transaction.Show();
     TransactiotextBox2.Show();
     button1.Hide();
     Depositbutton1.Hide();
     textBox1.Hide();
     richTextBox2.Show();
     label5.Show();
     transactionlabel.Show();
     label2.Hide();
     richTextBox1.Hide();
     button6.Show();
     button7.Show();
     button8.Hide();
     button9.Hide();
 }