private void buttonEdit_Click(object sender, EventArgs e) { int selectedIndex = dataGridView1.CurrentCell.RowIndex; int Id = (int)dataGridView1.Rows[selectedIndex].Cells[0].Value; MovementEditForm f = new MovementEditForm(Id, getInstance()); f.ShowDialog(); }
private void buttonCreate_Click(object sender, EventArgs e) { MovementEditForm f = new MovementEditForm(getInstance()); f.ShowDialog(); }