コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Categorias categoria = new Categorias();

            categoria.Descripcion = DescripciontextBox.Text;

            categoria.Insertar();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Categorias categoria = new Categorias();

            categoria.Descripcion = DescripciontextBox.Text;

            //HACER UN CICLO PARA RECORER EL LISTBOX PELICULA.AgregarAutor()

            categoria.Insertar();
        }
コード例 #3
0
        public void InsertarTest()
        {
            Categorias categoria = new Categorias();

            categoria.Descripcion = "LA PRUEBA";

            bool paso = categoria.Insertar();

            Assert.IsTrue(paso);
        }
コード例 #4
0
 private void GuardarButton_Click(object sender, EventArgs e)
 {
     Categorias categoria = new Categorias();
     LlenarDatos(categoria);
     if (categoria.Insertar())
     {
         MessageBox.Show("Categoria guardada...","Mensaje",MessageBoxButtons.OK,MessageBoxIcon.Information);
     }
     else
     {
         MessageBox.Show("Error al guardar");
     }
 }