private void BtnSil_Click(object sender, EventArgs e) { EntityPersonel ent = new EntityPersonel(); ent.Id = Convert.ToInt32(TxtId.Text); LogicPersonel.LLPersonelSil(ent.Id); }
private void btnsil_Click(object sender, EventArgs e) { EntityPersonel ent = new EntityPersonel(); ent.Id = Convert.ToInt32(txtid.Text); LogicPersonel.LLPersonelSil(ent.Id); MessageBox.Show("Personel Silindi", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Warning); }
private void btnSil_Click(object sender, EventArgs e) { EntityPersonel ent = new EntityPersonel(); ent.Id = int.Parse(txtID.Text); LogicPersonel.PersonelSil(ent.Id); Listele(); Temizle(); }
private void BtnEkle_Click(object sender, EventArgs e) { EntityPersonel ent = new EntityPersonel(); ent.Ad = TxtAd.Text; ent.Soyad = TxtSoyad.Text; ent.Sehir = TxtSehir.Text; ent.Gorev = TxtGorev.Text; ent.Maas = short.Parse(TxtMaas.Text); LogicPersonel.LLPersonelEkle(ent); }
private void btnekle_Click(object sender, EventArgs e) { EntityPersonel ent = new EntityPersonel(); ent.Ad = txtad.Text; ent.Soyad = txtsoyad.Text; ent.Sehir = txtsehir.Text; ent.Maas = short.Parse(txtmaas.Text); ent.Gorev = txtgorev.Text; LogicPersonel.LLPersonelEkle(ent); MessageBox.Show("Personel Eklendi", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void BtnGuncelle_Click(object sender, EventArgs e) { EntityPersonel ent = new EntityPersonel(); ent.Id = Convert.ToInt32(TxtId.Text); ent.Ad = TxtAd.Text; ent.Soyad = TxtSoyad.Text; ent.Sehir = TxtSehir.Text; ent.Gorev = TxtGorev.Text; ent.Maas = short.Parse(TxtMaas.Text); LogicPersonel.LLPersonelGuncelleme(ent); }
private void btnEkle_Click(object sender, EventArgs e) { EntityPersonel ent = new EntityPersonel(); ent.Ad = txtAd.Text; ent.Soyad = txtSoyad.Text; ent.Gorev = txtGorev.Text; ent.Sehir = txtSehir.Text; ent.Maas = short.Parse(txtMaas.Text); LogicPersonel.PersonelEkle(ent); Listele(); Temizle(); }
private void btnlistele_Click(object sender, EventArgs e) { List <EntityPersonel> PerList = LogicPersonel.LLPersonelListesi(); dataGridView1.DataSource = PerList; }
void Listele() { List <EntityPersonel> PerList = LogicPersonel.PersonelListesi(); dgvPersonel.DataSource = PerList; }