Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {   // instanciando e pegando texto das textbox
            add cadastrar = new add(textBoxNome.Text, textBoxTelefone.Text, textBoxEmail.Text);

            MessageBox.Show(cadastrar.message);
            Consultar consulta = new Consultar();

            consulta.Show();
            Hide();
        }
Example #2
0
 public void iniciar()
 {
     if (ChiCheckForInternetConnection() == true)
     {
         Consultar consultar = new Consultar();
         consultar.Show();
     }
     else
     {
         MessageBox.Show("Sem conexão a rede");
     }
 }