private void btnIngresar_Click(object sender, EventArgs e)
        {
            if (Validado())
            {
               String Sexo="";
                if(radioButtonHembra.Checked) Sexo = "HEMBRA";
                if(radioButtonMacho.Checked)Sexo = "MACHO";
                if(radioButtonHermafrodita.Checked) Sexo ="HERMAFRODITA";
                try
                {
                    ClaseMascota mascota = new ClaseMascota(this.txtNombreMascota.Text, Convert.ToInt32(this.txtIdRaza.Text),
                                                            this.dateTimeFechaNacimiento.Value, Sexo, this.txtIDColor.Text, Convert.ToInt32(this.txtIdDueño.Text));

                    MessageBox.Show("Registro Ingresado" + mascota.ingresar(mascota));
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }

            }
            else
            {
                MessageBox.Show("Registro no ingresado. Datos no validados");
            }
        }
예제 #2
0
        public String modificar(ClaseMascota mascota)
        {
            String SW = "";

            return(SW);
        }
예제 #3
0
        public String ingresar(ClaseMascota mascota)
        {
            String SW = "";

            return(SW);
        }
 public String modificar(ClaseMascota mascota)
 {
     String SW = "";
     return SW;
 }
 public String ingresar(ClaseMascota mascota)
 {
     String SW = "";
     return SW;
 }