예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if ((UserBox.Text == username) && (PassBox.Text == password))
            {
                MessageBox.Show("Login to the app was successful!");   //Cool feature but clicking okay everytime is annoying
                this.Hide();

                DataDineFrm ss = new DataDineFrm();
                ss.Show();
            }
            else
            {
                MessageBox.Show("Login details incorrect");
                PassBox.Text = "";
            }


            //LoginScreen ss = new LoginScreen();
            //ss.Show();
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if ((UserBox.Text == username) && (PassBox.Text == password))
            {
                //MessageBox.Show("Login to the app was successful!");
                this.Hide();
                //Form1 ss = new Form1();
                //Form1.Show();

                DataDineFrm ss = new DataDineFrm();
                ss.Show();
            }
            else
            {
                MessageBox.Show("Login details incorrect");
                PassBox.Text = "";
            }


            //LoginScreen ss = new LoginScreen();
            //ss.Show();
        }