Exemple #1
0
        private void ExtingusherToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Int32 idObject = Convert.ToInt32(dataGridViewObjects.Rows[dataGridViewObjects.SelectedCells[0].RowIndex].Cells[0].Value);

            FormExtingusher formEx = new FormExtingusher(connection, idObject);

            formEx.Show();
        }
Exemple #2
0
        private void dataGridViewUO_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            connection.Open();
            Int32      idObject = Convert.ToInt32(dataGridViewUO.Rows[dataGridViewUO.SelectedCells[0].RowIndex].Cells[1].Value);
            String     cmd      = "SELECT [idEXTINGUSHER] FROM [EXTINGUSHER] WHERE [idUO] = " + idObject.ToString() + ";";
            SqlCommand query_   = new SqlCommand(cmd, connection);

            idObject = Convert.ToInt32(query_.ExecuteScalar());
            connection.Close();
            FormExtingusher formEx = new FormExtingusher(connection, idObject);

            formEx.Show();
        }
Exemple #3
0
        private void buttonEX_Click(object sender, EventArgs e)
        {
            FormExtingusher formEx = new FormExtingusher(connection, -1);

            formEx.Show();
        }