private void CmbPlataforma_SelectedIndexChanged(object sender, EventArgs e)
        {
            ClsEPlataforma Eobj = new ClsEPlataforma();
            ClsNPlataforma Nobj = new ClsNPlataforma();

            CmbNombrePlataforma.DataSource    = Nobj.MtdBuscarPlataforma(CmbPlataforma.Text);
            CmbNombrePlataforma.DisplayMember = "NombrePlat";
        }
Пример #2
0
        public void ActualizarPlataformaTest()
        {
            String codigo = "1";
            String nombre = "PS5";

            var Negocios = new ClsNPlataforma();
            var Entidad  = new ClsEPlataforma()
            {
                codplat = codigo,
                nomplat = nombre
            };
            var resultadoFinal = Negocios.MtdActualizarPlataforma(Entidad);

            Assert.IsTrue(resultadoFinal);
        }
 private void BtnAgregar_Click(object sender, EventArgs e)
 {
     if (TxtCodigo.Text != "" && TxtNombre.Text != "")
     {
         ClsEPlataforma Eobj = new ClsEPlataforma();
         ClsNPlataforma Nobj = new ClsNPlataforma();
         Eobj.codplat = TxtCodigo.Text;
         Eobj.nomplat = TxtNombre.Text;
         Nobj.MtdAgregarPlataforma(Eobj);
         DgvPlataforma.DataSource = Nobj.MtdListarPlataforma();
     }
     else
     {
         MessageBox.Show("Por favor llene todos los campos", "Mensaje");
     }
 }
        private void FrmProductosRegistro_Load(object sender, EventArgs e)
        {
            ClsNProductos Nobj = new ClsNProductos();

            DgvProductos.DataSource = Nobj.MtdListarProductos();

            ClsNPlataforma NNObj = new ClsNPlataforma();

            CmbPlataforma.DataSource    = NNObj.MtdListarCodigoPlataforma();
            CmbPlataforma.DisplayMember = "CodigoPlat";
            CmbNombrePlataforma.Enabled = false;
            CmbPlataforma.Text          = "";
            CmbNombrePlataforma.Text    = "";


            ClsNGenero NNNObj = new ClsNGenero();

            CmbGenero.DataSource    = NNNObj.MtdListarCodigoGenero();
            CmbGenero.DisplayMember = "CodigoGen";
            CmbNombreGenero.Enabled = false;
            CmbGenero.Text          = "";
            CmbNombreGenero.Text    = "";
        }
        private void FrmProductosPlataforma_Load(object sender, EventArgs e)
        {
            ClsNPlataforma Nobj = new ClsNPlataforma();

            DgvPlataforma.DataSource = Nobj.MtdListarPlataforma();
        }