public void Kaydet(string adi) { Stok.Musteri musteri = new Stok.Musteri(); musteri.Adi = adi; musteri.IsAktif = true; db.AddToMusteri(musteri); db.SaveChanges(); if (IslemYapildi != null) IslemYapildi(null, null); }
private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { seciliMusteri=new Stok.Services.Musteri().GetbyId(Convert.ToInt32(gridView1.GetFocusedRowCellValue("Id"))); }