/// <summary> /// Disposes the osd controller /// </summary> public void Dispose() { _fullscreenWindow.CompleteDispose(); _dialogWindow.Dispose(); _videoOSDWindow.Dispose(); _osdForm.Dispose(); GUIGraphicsContext.form.SizeChanged -= parent_SizeChanged; ImageCache.Dispose(); singleton = null; }
/// <summary> /// Loads the bitmap with the given filename /// </summary> /// <param name="fileName">Filename of the bitmap</param> /// <returns>Bitmap</returns> protected static Bitmap loadBitmap(String fileName) { return(ImageCache.GetImage(fileName)); }