Exemplo n.º 1
0
 private void frmAgregarEditarAlmacen_Load(object sender, EventArgs e)
 {
     if (AlmacenID.HasValue)
     {
         int ID = Convert.ToInt32(AlmacenID);
         //Instanciamos la capa de negocios
         AlmacenBL ObjetoAlmacen = new AlmacenBL();
         //Mostramos el resultado
         try
         {
             MostrarDatos(ObjetoAlmacen.BuscarPorID(ID));
         }
         catch (Exception Ex)
         {
             MessageBox.Show(Ex.Message);
         }
     }
     else
     {
         //Ponemos el indicador en -1
         txtCodigo.Text = "-1";
     }
 }