Exemple #1
0
 private void bt_In_Click(object sender, EventArgs e)
 {
     if (tb_correo.Text!=""&&tb_contra.Text!="") { }
     DataSourcePOI dspoi = new DataSourcePOI();
        bool result = dspoi.registrarse(tb_correo.Text, tb_contra.Text, Convert.ToInt32(cb_carrera.SelectedValue));
     if (result)
     {
         MessageBox.Show("Registro Exitoso", "Exito", MessageBoxButtons.OK, MessageBoxIcon.Information);
         Close();
     }
     else
     {
         MessageBox.Show("Registro Fallido", "Fallido", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }