private void _Logout_Click(object sender, EventArgs e) { this.Close(); formLogin login = new formLogin(); login.Show(); }
private void _Logout_Click(object sender, EventArgs e) { //Program.conn.Open(); //statement = "SELECT username FROM pegawai WHERE islogin = 1"; // Program.conn.ExecuteDataTable(statement); // user = tabel.Rows[0].ItemArray[0].ToString(); //Program.conn.Close(); //Program.conn.Open(); //statement = "UPDATE pegawai SET islogin = 0 WHERE username ='******'"; // Program.conn.ExecuteNonQuery(statement); //Program.conn.Close(); this.Close(); formLogin login = new formLogin(); login.Show(); }