private void btnAramalarBack_Click(object sender, EventArgs e) { frmAnaMenu anaMenu = new frmAnaMenu(); anaMenu.Show(); this.Hide(); }
private void btnAdminBack_Click(object sender, EventArgs e) { frmAnaMenu frmAna = new frmAnaMenu(); frmAna.Show(); this.Hide(); }
private void btnGiris_Click(object sender, EventArgs e) { if (String.IsNullOrWhiteSpace(txtUsername.Text) || string.IsNullOrWhiteSpace(txtPassword.Text)) { MessageBox.Show("Giriş Başarısız."); } kadi = txtUsername.Text; sifre = txtPassword.Text; try { VTbaglan(); string sql = "SELECT * FROM tblKullanicilar WHERE KullaniciAdi='" + kadi + "' AND Sifre='" + sifre + "'"; SqlCommand cmd = new SqlCommand(sql, baglanti); dt = new DataTable(); sda = new SqlDataAdapter(cmd); sda.Fill(dt); if (dt.Rows.Count > 0) { frmAnaMenu anaMenu = new frmAnaMenu(this); SistemParametre.SistemKullanci = Convert.ToInt32(dt.Rows[0]["KullaniciID"]); anaMenu.Show(); } else { MessageBox.Show("Yanlış Kullanıcı ve ya şifre."); } } catch { MessageBox.Show("Hatalı Gİriş."); } VTkapat(); }
private void btnAramalarBack_Click(object sender, EventArgs e) { frmAnaMenu frmanamenu = new frmAnaMenu(this); frmanamenu.Show(); }