public static void Initialize() { staticCursorFactroy = new StaticCursorFactroy(); animatedCursorFactroy = new AnimatedCursorFactroy(); foreach (var item in Search(CursorsDirectory)) { string name = item.Key.ToLower(); cursors.Add(name, item.Value); } staticCursorFactroy = null; animatedCursorFactroy = null; }
private void Test1() { var animatedCursorFactroy = new AnimatedCursorFactroy(); var staticCursorFactroy = new StaticCursorFactroy(); using (var content = SharpZipLibContent.CreateNew(Path.Combine(GameCursor.CursorsDirectory, "AnimatedCursor.zip"))) { using (content.BeginUpdateAuto()) { animatedCursorFactroy.Write(content, animatedCursor); } } using (var content = SharpZipLibContent.CreateNew(Path.Combine(GameCursor.CursorsDirectory, "StaticCursor.zip"))) { using (content.BeginUpdateAuto()) { staticCursorFactroy.Write(content, staticCursor); } } }