예제 #1
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 BtnModificar_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.MtdActualizarPlataforma(Eobj);
                DgvPlataforma.DataSource = Nobj.MtdListarPlataforma();

                TxtCodigo.Enabled = true;
                TxtCodigo.Clear();
                TxtNombre.Clear();
            }
            else
            {
                MessageBox.Show("Por favor llene todos los campos", "Mensaje");
            }
        }