Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        private void buttonJUO_Click(object sender, EventArgs e)
        {
            FormUO formUO = new FormUO(connection, -1);

            formUO.Show();
        }