/// <summary> /// Metoda vrátí <see cref="System.Drawing.Image"/> na základě dat v objektu <see cref="Noris.LCS.Base.WorkScheduler.GuiImage"/>. /// </summary> /// <param name="guiImage"></param> /// <returns></returns> public Image GetImage(Noris.LCS.Base.WorkScheduler.GuiImage guiImage) { if (guiImage == null) { return(null); } if (guiImage.Image != null) { return(guiImage.Image); } if (guiImage.ImageContent != null) { guiImage.Image = ResourceItem.GetImage(guiImage.ImageContent); return(guiImage.Image); } if (guiImage.ImageFile != null) { return(this.GetImage(guiImage.ImageFile)); } return(null); }