Пример #1
0
        private void button_Back_Click(object sender, EventArgs e)
        {
            OptionPage n = new OptionPage();

            n.ShowDialog();
            this.Dispose();
        }
Пример #2
0
        private void button_Back_Click(object sender, EventArgs e)
        {
            OptionPage op = new OptionPage();

            op.ShowDialog();
            this.Hide();
        }
Пример #3
0
        void login()
        {
            String user     = textBoxUserName.Text;
            String Password = textBox_LoginPassword.Text;

            if (user.Equals("Swapan") && (Password.Equals("1234")))

            {
                MessageBox.Show("Successfully Loged In..");
                this.Hide();
                OptionPage f = new OptionPage();
                f.ShowDialog();
            }
            else
            {
                MessageBox.Show("Wrong Username and Password");
            }
        }