private void button19_Click(object sender, EventArgs e) { if (dataGridViewpost.SelectedCells.Count == 0) { return; } { Gl.ID = dataGridViewpost.CurrentRow.Cells[0].Value.ToString(); Gl.tbizm = 2; FormIzm izm = new FormIzm(); izm.ShowDialog(); UpdateStatus(); } }
private void button20_Click(object sender, EventArgs e) { if (dataGridViewPrise.SelectedCells.Count == 0) { return; } { Gl.ID = dataGridViewPrise.CurrentRow.Cells[0].Value.ToString(); Gl.poch = dataGridViewPrise.CurrentRow.Cells[1].Value.ToString(); Gl.post = dataGridViewPrise.CurrentRow.Cells[2].Value.ToString(); Gl.status = dataGridViewPrise.CurrentRow.Cells[3].Value.ToString(); Gl.summ = dataGridViewPrise.CurrentRow.Cells[4].Value.ToString(); Gl.ID2 = dataGridViewPrise.CurrentRow.Cells[4].Value.ToString(); Gl.tbizm = 3; FormIzm izm = new FormIzm(); izm.ShowDialog(); UpdateStatus(); } }