private void button4_Click(object sender, EventArgs e)
        {
            giris frm = new giris();

            frm.Show();
            Hide();
        }
Exemple #2
0
 private void button8_Click(object sender, EventArgs e)
 {
     textBox10.Text = textBox10.Text.ToUpper();
     textBox11.Text = textBox11.Text.ToUpper();
     textBox10.Text = textBox10.Text.Trim();
     textBox11.Text = textBox11.Text.Trim();
     if (textBox2.Text == sif)
     {
         if (textBox10.Text == "" || textBox11.Text == "")
         {
             MessageBox.Show("Lütfen Adınızı ve Soyadınızı yazınız");
         }
         else
         {
             MessageBox.Show("Bilgiler Güncellendi");
             baglan.Open();
             sorgu.Connection  = baglan;
             sorgu.CommandText = "update giriskismi set ad='" + textBox10.Text + "',soyad='" + textBox11.Text + "',d_t='" + dateTimePicker1.Text + "'";
             sorgu.ExecuteNonQuery();
             baglan.Close();
             giris frm = new giris();
             frm.Show();
             Hide();
         }
     }
     else
     {
         MessageBox.Show("Yanlış Şifre");
     }
 }