private void BtnYeniKargo_Click(object sender, EventArgs e) { int KuryeID = cbxKuryeler.SelectedIndex + 1; Kargo yeniKargo = new Kargo(Convert.ToInt32(dgwKargo.CurrentRow.Cells[1].Value), dateTimePicker1.Value); KHareketleri guncelHareket = new KHareketleri(Convert.ToInt32(dgwKargo.CurrentRow.Cells[0].Value), Convert.ToInt32(dgwKargo.CurrentRow.Cells[1].Value), KuryeID, tbxDurumGuncel.Text); islemler.KargoGuncelle(yeniKargo); islemler.KargoHareketGuncelle(guncelHareket); islemler.LoadKargoHareket(dgwKargo); }