private void button5_Click(object sender, EventArgs e) { LibraryGeneral lgf = new LibraryGeneral(); lgf.Show(); this.Close(); }
private void btnLogin_Click(object sender, EventArgs e) { string username = txtUsername.Text; string password = txtPassword.Text; string[] stringer = new string[2]; bool sonuc = User.Yoxla(username, password); if (sonuc == true) { stringer = User.IdRolGetir(username, password); Id = stringer[0]; Rol = stringer[1]; LibraryGeneral lgf = new LibraryGeneral(); lgf.Show(); } else { MessageBox.Show("Kullanici Ismi ve ya Parola yanlistir!!!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error); } }