private void geriGitToolStripMenuItem_Click(object sender, EventArgs e) { FrmGirisler fr = new FrmGirisler(); fr.Show(); this.Hide(); }
private void button2_Click(object sender, EventArgs e) { FrmGirisler fr = new FrmGirisler(); fr.Show(); this.Hide(); }
private void BtnAnaSayfa_Click(object sender, EventArgs e) { FrmGirisler fr = new FrmGirisler(); fr.Show(); this.Hide(); }
private void BtnGirisYap_Click(object sender, EventArgs e) { SqlCommand komut = new SqlCommand("Select * From HastaKayit Where HastaAd=@p1 and Sifre=@p2", bgl.baglanti()); komut.Parameters.AddWithValue("p1", TxtKullaniciAdi.Text); komut.Parameters.AddWithValue("p2", TxtParola.Text); SqlDataReader dr = komut.ExecuteReader(); if (dr.Read()) { FrmGirisler fr = new FrmGirisler(); fr.tc = TxtKullaniciAdi.Text; fr.Show(); this.Hide(); } else { MessageBox.Show("BİLGİLER HATALI"); } bgl.baglanti().Close(); }