コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text.Trim() == "")
     {
         MessageBox.Show("KULLANICI ADI BOŞ OLAMAZ");
         textBox1.Focus();
         return;
     }
     if (textBox2.Text.Trim() == "")
     {
         MessageBox.Show("ŞİFRE BOŞ OLAMAZ");
         textBox2.Focus();
         return;
     }
     try
     {
         kayit uye = new kayit();
         uye.kuladi = textBox1.Text;
         uye.sifre  = textBox2.Text;
         db.kayits.InsertOnSubmit(uye);
         db.SubmitChanges();
         MessageBox.Show("kayıt başarılı");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
 partial void Updatekayit(kayit instance);
コード例 #3
0
 partial void Deletekayit(kayit instance);
コード例 #4
0
 partial void Insertkayit(kayit instance);