public static void Afiseaza(Form pEcranParinte, string pLocatieImagine, string pTitlu) { using (frmAfiseazaImagine ecran = new frmAfiseazaImagine(pLocatieImagine, pTitlu)) { ecran.MinimumSize = new Size(500, 500); ecran.setCulori(); CCL.UI.IHMUtile.DeschideEcran(pEcranParinte, ecran); } }
public static void Afiseaza(Form pEcranParinte, List <Image> pListaImagini, List <string> pListaDenumiri, string pTitlu, bool pPermiteImprimarea, bool pDistrugeImaginile) { using (frmAfiseazaImagine ecran = new frmAfiseazaImagine(pListaImagini, pListaDenumiri, pTitlu, pPermiteImprimarea)) { ecran.MinimumSize = new Size(500, 500); ecran.setCulori(); CCL.UI.IHMUtile.DeschideEcran(pEcranParinte, ecran); if (pDistrugeImaginile) { //Eliberam memoria if (pListaImagini != null) { for (int i = 0; i < pListaImagini.Count; i++) { pListaImagini[i].Dispose(); } pListaImagini = null; } } } }