private void pictureBox1_Click(object sender, EventArgs e)
        {
            DOKTOR Frm = new DOKTOR();

            Frm.Tc = DoktorTc;
            Frm.Show();
            this.Hide();
        }
        private void button1_Click_1(object sender, EventArgs e)
        {
            SqlCommand Giris = new SqlCommand("select * from Tbl_Doktorlar where TC = @p1 and SİFRE=@p2 ", Bgl.Baglanti());

            Giris.Parameters.AddWithValue("@p1", maskedTextBox1.Text);
            Giris.Parameters.AddWithValue("@p2", textBox1.Text);
            SqlDataReader dm = Giris.ExecuteReader();

            if (dm.Read())
            {
                DOKTOR frm = new DOKTOR();
                frm.Tc = maskedTextBox1.Text;
                frm.Show();
                this.Hide();
            }
        }
예제 #3
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     if (label11.Text == "1")
     {
         DoktorGiris frm = new DoktorGiris();
         frm.Show();
         this.Close();
     }
     if (label11.Text == "0")
     {
         DOKTOR frm = new DOKTOR();
         frm.Tc       = MskTc.Text;
         frm.Ad_Soyad = TxtAd.Text + " " + TxtSoyad.Text;
         frm.Show();
         this.Close();
     }
 }