Beispiel #1
0
        private void depositToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmDeposit D = new frmDeposit();

            D.ShowDialog();
            FormSlideEffect.Slide(D, FormSlideEffect.Slides.Down);
        }
Beispiel #2
0
        private void viewAllTransactionsToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            frmTransaction T = new frmTransaction();

            T.ShowDialog();
            FormSlideEffect.Slide(T, FormSlideEffect.Slides.Down);
        }
Beispiel #3
0
        private void clientToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmAddClient C = new frmAddClient();

            C.ShowDialog();
            FormSlideEffect.Slide(C, FormSlideEffect.Slides.Up);
        }
Beispiel #4
0
        private void manageUsersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmViewUser VU = new frmViewUser();

            VU.ShowDialog();
            FormSlideEffect.Slide(VU, FormSlideEffect.Slides.Up);
        }
Beispiel #5
0
        private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmChangePass CP = new frmChangePass();

            CP.ShowDialog();
            FormSlideEffect.Slide(CP, FormSlideEffect.Slides.Right);
        }
Beispiel #6
0
        private void tellerToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmRegister R = new frmRegister();

            R.ShowDialog();
            FormSlideEffect.Slide(R, FormSlideEffect.Slides.Right);
        }
Beispiel #7
0
        private void inquireBalanceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmInquire I = new frmInquire();

            I.ShowDialog();
            FormSlideEffect.Slide(I, FormSlideEffect.Slides.Down);
        }
Beispiel #8
0
        private void withdrawToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmWithdraw W = new frmWithdraw();

            W.ShowDialog();
            FormSlideEffect.Slide(W, FormSlideEffect.Slides.Down);
        }
Beispiel #9
0
        private void btnForgotPass_Click(object sender, EventArgs e)
        {
            db = new DCbankDataContext();
            if (txtanswer.Text.Equals("") || txtanswer.Text.Equals(""))
            {
                lblAction.Text = "Fill up Everything";
            }
            else
            {
                int counter    = 0;
                var Query_Pass = db.sp_retrieve_user(txtusername.Text, cboQuestion.Text, txtanswer.Text);
                foreach (sp_retrieve_userResult entry in Query_Pass)
                {
                    DialogResult result = MessageBox.Show("Your Password: "******"Successfully retrieved", MessageBoxButtons.OK);
                    if (result == DialogResult.OK)
                    {
                        this.Hide();
                        frmLogin A = new frmLogin();
                        A.Show();
                        FormSlideEffect.Slide(A, FormSlideEffect.Slides.Up);
                    }

                    counter++;
                }
                if (counter.Equals(0))
                {
                    lblAction.Text = "Incorrect Information";
                }
            }
        }
Beispiel #10
0
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.Hide();
            frmForgotPass F = new frmForgotPass();

            F.Show();
            FormSlideEffect.Slide(F, FormSlideEffect.Slides.Up);
        }
Beispiel #11
0
        private void label6_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmLogin A = new frmLogin();

            A.Show();
            FormSlideEffect.Slide(A, FormSlideEffect.Slides.Up);
        }
Beispiel #12
0
        private void exitToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are you sure you want to Logout?", "NOTE", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                this.Hide();
                frmLogin A = new frmLogin();
                A.ShowDialog();
                FormSlideEffect.Slide(A, FormSlideEffect.Slides.Up);
            }
        }
Beispiel #13
0
 private void label9_Click(object sender, EventArgs e)
 {
     FormSlideEffect.Slide(this, FormSlideEffect.Slides.Up);
     this.Close();
 }