Beispiel #1
0
        private void btnVender_Click(object sender, EventArgs e)
        {
            try
            {
                frmAbaVender fav = new frmAbaVender();
                fav.Show();

                som.Chimes();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #2
0
        public void btnNovo_Click(object sender, EventArgs e)
        {
            try
            {
                som.Chimes();

                if (consulta == "ace")
                {
                    frmCadastroAcessorios cad = new frmCadastroAcessorios();
                    cad.Show();

                    Close();
                }
                else
                if (consulta == "ins")
                {
                    frmCadastroInstrumento cin = new frmCadastroInstrumento();
                    cin.Show();

                    Close();
                }
                else
                if (consulta == "mid")
                {
                    frmCadastroMidia cmi = new frmCadastroMidia();
                    cmi.Show();

                    Close();
                }
                else
                if (consulta == "vda")
                {
                    frmAbaVender abv = new frmAbaVender();
                    abv.Show();

                    Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }