Esempio n. 1
0
 public DetalleMaterialSubGrupo(CatalogoMateriales formExterno)
 {
     InitializeComponent();
     UserLookAndFeel.Default.SetSkinStyle("The Bezier");
     try
     {
         formLocal = formExterno;
         GridControl.DataSource = sg.GetAllSubGrupos();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public DetalleMaterial()
 {
     InitializeComponent();
     UserLookAndFeel.Default.SetSkinStyle("The Bezier");
     try
     {
         CatalogoMateriales m = new CatalogoMateriales();
         boxImg.Image    = s.imagen(CatalogoMateriales.imgNombre);
         boxImg.SizeMode = PictureBoxSizeMode.Zoom;
         NetworkChange.NetworkAvailabilityChanged += AvailabilityChanged;
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }