Esempio n. 1
0
        private void btnDuzenle_Click(object sender, EventArgs e)
        {
            int secilen = Convert.ToInt32(gridView2.GetFocusedRowCellValue(colId));

            _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault();
            KayitAc();
        }
Esempio n. 2
0
        private void btnsec_Click(object sender, EventArgs e)
        {
            int secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(gridColıd));

            _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault();
            this.Close();
        }
Esempio n. 3
0
        private void BtnSec_Click(object sender, EventArgs e)
        {
            int secilen = Convert.ToInt32(gridTanim.GetFocusedRowCellValue(colId));

            _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault();
            secildi = true;
            this.Close();
        }
Esempio n. 4
0
 private void btnDuzenle_Click(object sender, EventArgs e)
 {
     if (gridTanim.RowCount != 0)
     {
         int secilen = Convert.ToInt32(gridTanim.GetFocusedRowCellValue(colId));
         _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault();
         KayitAc();
     }
     else
     {
         MessageBox.Show("Lütfen Seçim Yapınız.");
     }
 }
Esempio n. 5
0
        public void TanimKontrol(string tanim, frmTanim.TanimTuru tanimTuru)
        {
            Tanim t = DB.Tanimlar.FirstOrDefault(x => x.Tanimi == tanim && x.Turu == tanimTuru.ToString());

            if (t == null)
            {
                t = new Tanim
                {
                    Tanimi = tanim,
                    Turu   = tanimTuru.ToString()
                };
                DB.Tanimlar.Add(t);
                DB.SaveChanges();
            }
        }
Esempio n. 6
0
 private void btnEkle_Click(object sender, EventArgs e)
 {
     _entity = new Tanim();
     KayitAc();
 }
Esempio n. 7
0
 private void btnEkle_Click(object sender, EventArgs e)
 {
     KayitAc();
     _tanimEntity = new Tanim();
     TanimBinding();
 }
Esempio n. 8
0
 private void btnSec_Click(object sender, EventArgs e)
 {
     secildi      = true;
     _tanimEntity = (Tanim)gridTanim.GetFocusedRow();
     this.Close();
 }
Esempio n. 9
0
 private void btnVazgec_Click(object sender, EventArgs e)
 {
     _tanimEntity = null;
     KayitKapat();
 }
Esempio n. 10
0
 private void btnDuzenle_Click(object sender, EventArgs e)
 {
     KayitAc();
     _tanimEntity = (Tanim)gridTanim.GetFocusedRow();
     TanimBinding();
 }