protected internal virtual void LoadIcons() { Assembly asm = typeof(Appointment).Assembly; this.recurringSvgImage = ResourceImageHelper.CreateSvgImageFromResources(SchedulerSvgImageNames.NewRecurringAppointment, asm); this.normalSvgImage = ResourceImageHelper.CreateSvgImageFromResources(SchedulerSvgImageNames.NewAppointment, asm); }
public static SvgImage GetSvgImage(string imageName) { SvgImage svgImage; if (!svgImages.TryGetValue(imageName, out svgImage)) { svgImage = ResourceImageHelper.CreateSvgImageFromResources(prefix + imageName + ext, typeof(SvgResources).Assembly); svgImages.Add(imageName, svgImage); } return(svgImage); }