private void btn_OzellikEkle_Click(object sender, EventArgs e) { Ozellikler oz = new Ozellikler { Aciklama = txt_Aciklama.Text, Aktif = true }; if (!string.IsNullOrEmpty(txt_OzellikAdi.Text)) { oz.Adi = txt_OzellikAdi.Text; } bool snc = ozORM.Insert(oz); if (snc) { MessageBox.Show("Eklendi"); dataGridView1.DataSource = ozORM.Select(); } else { MessageBox.Show("Hata"); } }