private void Test0() { var animatedCursorFactroy = new AnimatedCursorFactroy(); using (var content = new SharpZipLibContent(Path.Combine(GameCursor.CursorsDirectory, "Wait.zip"))) { animatedCursor = animatedCursorFactroy.Read(content); } WindowCursor.SetCursor(animatedCursor); }
private static bool TryRead(IReadOnlyContent content, out ICustomCursor cursor) { try { cursor = staticCursorFactroy.Read(content); return(true); } catch { try { cursor = animatedCursorFactroy.Read(content); return(true); } catch { cursor = null; return(false); } } }