private void dataGridViewAbone_CellClick(object sender, DataGridViewCellEventArgs e) { int RowId = dataGridViewAbone.SelectedCells[0].RowIndex; if (dataGridViewAbone.Rows[RowId].Cells[0].Value != null) { abonelikler_guncelle abonelikler_guncelle = (abonelikler_guncelle)Application.OpenForms["abonelikler_guncelle"]; if (abonelikler_guncelle != null) { abonelikler_guncelle.lblAboneId.Text = dataGridViewAbone.Rows[RowId].Cells[0].Value.ToString(); abonelikler_guncelle.txtAboneAdSoyad.Text = dataGridViewAbone.Rows[RowId].Cells[1].Value.ToString() + " " + dataGridViewAbone.Rows[RowId].Cells[2].Value.ToString(); } aracgiris_guncelle aracgiris_guncelle = (aracgiris_guncelle)Application.OpenForms["aracgiris_guncelle"]; if (aracgiris_guncelle != null) { aracgiris_guncelle.lblAboneId.Text = dataGridViewAbone.Rows[RowId].Cells[0].Value.ToString(); aracgiris_guncelle.txtAdSoyad.Text = dataGridViewAbone.Rows[RowId].Cells[1].Value.ToString() + " " + dataGridViewAbone.Rows[RowId].Cells[2].Value.ToString(); } this.Close(); } }
private void araçGirişiEkleToolStripMenuItem_Click(object sender, EventArgs e) { aracgiris_guncelle aracgiris_guncelle = new aracgiris_guncelle(); aracgiris_guncelle.Show(); }