/// <summary> /// Clean up used resources and destroy window /// </summary> public void Dispose() { IsDisposing = true; Graphics.Dispose(); NativeUtils.DestroyWindow(Handle); }