Exemplo n.º 1
0
        private void dataMasukToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Masuk ss = new Masuk();

            ss.Show();
        }
Exemplo n.º 2
0
        private void btnBatal_Click(object sender, EventArgs e)
        {
            this.Hide();
            Masuk ss = new Masuk();

            ss.Show();
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            MySqlConnection  connection = new MySqlConnection("datasource=localhost;port=3306;username=root;password="******"SELECT * FROM db_parkir.login where username='******' and password = '******'", connection);
            DataTable        dt         = new DataTable();

            sda.Fill(dt);
            if (dt.Rows.Count > 0)
            {
                this.Hide();
                Masuk ss = new Masuk();
                ss.Show();
            }
            else
            {
                MessageBox.Show("GAGAl LOGIN");
            }
        }