Exemplo n.º 1
0
        private void flatButton2_Click(object sender, EventArgs e)
        {
            this.Close();
            Main_Program ma = new Main_Program();

            ma.Show();
        }
Exemplo n.º 2
0
        private void رجوعToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
            Main_Program ma = new Main_Program();

            ma.Show();
        }
Exemplo n.º 3
0
        private void metrobtn1_Click(object sender, EventArgs e)
        {
            string           sql  = "Data Source = Data.db";
            SQLiteConnection conn = new SQLiteConnection(sql);

            conn.Open();
            string        query  = "SELECT count(*) FROM Login WHERE Login_user = '******' AND Login_pass = '******' ";
            SQLiteCommand cmd    = new SQLiteCommand(query, conn);
            int           result = Convert.ToInt16(cmd.ExecuteScalar());

            if (result > 0)
            {
                metrobtn1.Focus();
                this.Hide();
                Main_Program mainprogram = new Main_Program();
                mainprogram.Show();
            }
            else
            {
                metrotxt1.Clear();
                metrotxt2.Clear();
                MessageBox.Show("أسم المستخدم أو كلمة المرور خطأ", "خطأ", MessageBoxButtons.OK, MessageBoxIcon.Error);
                metrotxt1.Focus();
            }
            conn.Close();
        }
Exemplo n.º 4
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Close();
            Main_Program ma = new Main_Program();

            ma.Show();
        }