Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            jdawl s = new jdawl();

            s.Show();
            this.Hide();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int x = Convert.ToInt32(this.loginTableAdapter.ScalarQuery(textBox1.Text,
                                                                       textBox2.Text));

            if (x == 1)
            {
                jdawl s = new jdawl();
                s.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("تاكد من ادخال اسم المستخدم وكلمة السر بشكل صحيح");
            }
        }