private void UOToolStripMenuItem_Click(object sender, EventArgs e) { Int32 idObject = Convert.ToInt32(dataGridViewObjects.Rows[dataGridViewObjects.SelectedCells[0].RowIndex].Cells[0].Value); FormUO formUO = new FormUO(connection, idObject); formUO.Show(); }
private void buttonSelect_Click(object sender, EventArgs e) { FormUO formUO = new FormUO(connection, -1, 1); formUO.dataGridViewUO.CellContentClick += (senderObj, eargs) => { this.idUO = Convert.ToInt32(formUO.dataGridViewUO.Rows[formUO.dataGridViewUO.SelectedCells[0].RowIndex].Cells[0].Value); formUO.Close(); }; formUO.Show(); }
private void buttonJUO_Click(object sender, EventArgs e) { FormUO formUO = new FormUO(connection, -1); formUO.Show(); }