示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            string     strSQL  = "update tbFLUXO set confirmacao='não confirmado' where campo=4";
            SqlCommand comando = new SqlCommand(strSQL, sqlConn);

            try
            {
                sqlConn.Open();
                comando.ExecuteNonQuery();
                DialogResult confirm = MessageBox.Show("Adicionar Ocorrência?", "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);

                if (confirm.ToString().ToUpper() == "OK")
                {
                    this.Visible = false;
                    Fluxo       Form2    = new Fluxo();
                    Ocorrencias newForm5 = new Ocorrencias();
                    newForm5.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: " + ex.Message);
            }
            finally
            {
                sqlConn.Close();
            }
        }
示例#2
0
        private void fluxoDoDiaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Ocorrencias Form2    = new Ocorrencias();
            Fluxo       newForm4 = new Fluxo();

            newForm4.ShowDialog();
        }
示例#3
0
        private void fluxoDoDiaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            ConsultarOni Form2    = new ConsultarOni();
            Fluxo        newForm4 = new Fluxo();

            newForm4.ShowDialog();
        }
示例#4
0
        private void cadastroToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Fluxo        Form2    = new Fluxo();
            CadastroMoto newForm7 = new CadastroMoto();

            newForm7.ShowDialog();
        }
示例#5
0
        private void cadastroÔnibusToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Fluxo       Form2    = new Fluxo();
            CadastroOni newForm6 = new CadastroOni();

            newForm6.ShowDialog();
        }
示例#6
0
        private void consultasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Fluxo     Form2    = new Fluxo();
            Consultas newForm3 = new Consultas();

            newForm3.ShowDialog();
        }
示例#7
0
        private void ocorrênciasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Fluxo       Form2    = new Fluxo();
            Ocorrencias newForm5 = new Ocorrencias();

            newForm5.ShowDialog();
        }