Example #1
0
        private void BtnSil_Click(object sender, EventArgs e)
        {
            EntityPersonel ent = new EntityPersonel();

            ent.Id = Convert.ToInt32(TxtId.Text);
            LogicPersonel.LLPersonelSil(ent.Id);
        }
Example #2
0
        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);
        }
Example #3
0
        private void btnSil_Click(object sender, EventArgs e)
        {
            EntityPersonel ent = new EntityPersonel();

            ent.Id = int.Parse(txtID.Text);
            LogicPersonel.PersonelSil(ent.Id);
            Listele();
            Temizle();
        }
Example #4
0
        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);
        }
Example #5
0
        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);
        }
Example #6
0
        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);
        }
Example #7
0
        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();
        }
Example #8
0
        private void btnlistele_Click(object sender, EventArgs e)
        {
            List <EntityPersonel> PerList = LogicPersonel.LLPersonelListesi();

            dataGridView1.DataSource = PerList;
        }
Example #9
0
        void Listele()
        {
            List <EntityPersonel> PerList = LogicPersonel.PersonelListesi();

            dgvPersonel.DataSource = PerList;
        }