Beispiel #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            MySqlConnection cn = new MySqlConnection("server=localhost;user id=root; database=proyecto2; password="******"SELECT user_id FROM vs_users", cn);
                MySqlDataAdapter da = new MySqlDataAdapter(cmd);
                DataTable dt = new DataTable();
                da.Fill(dt);

                if (dt.Rows.Count > 0)
                {

                    login entrada = new login();
                    entrada.Show();
                    this.Hide();
                    cn.Close();
                }
                else
                {
                    registro entrada = new registro();
                    entrada.Show();
                    this.Hide();
                    cn.Close();
                }

            }
        }
Beispiel #2
0
 private void nuevoMiembroToolStripMenuItem_Click(object sender, EventArgs e)
 {
     registro re = new registro();
     re.Show();
 }