private void button2_Click(object sender, EventArgs e) { // Cari Düzenle int c = ((HesapHareketViewModel)dataGridView1.SelectedRows[0].DataBoundItem).CariKod; YeniCariHesapEkrani y = new YeniCariHesapEkrani(); y.SeciliCari = Program.CariRep.Liste.Where(x => x.CariKod == c).FirstOrDefault(); y.Show(); }
private void btnAdd_Click(object sender, EventArgs e) { YeniCariHesapEkrani y = new YeniCariHesapEkrani(); y.Show(); }