public int AddImage(string fileName, int transColor, bool transDefault) { try { BaseImage img = NWResourceManager.LoadImage(fScreen, fileName, transColor); if (img != null) { if (transDefault) { img.SetTransDefault(); } int result = fImages.Count; fImages.Add(img); return(result); } else { return(-1); } } catch (Exception ex) { Logger.Write("ImageList.addImage(" + fileName + "): " + ex.Message); return(-1); } }