public CursorManager(ICursorScope scope) { if (scope == null) throw new ArgumentNullException("scope"); Scope = scope; cursors = new List<Cursor>(); }
private void Dispose(bool disposing) { if (disposing) { if (cursors != null) { foreach (var cursor in cursors) { cursor.Dispose(); } cursors.Clear(); } } cursors = null; Scope = null; }
public static bool DropCursor(this ICursorScope scope, string cursorName) { return(scope.CursorManager.DropCursor(cursorName)); }
public static bool CursorExists(this ICursorScope scope, string cursorName) { return(scope.CursorManager.CursorExists(cursorName)); }
public static Cursor GetCursor(this ICursorScope scope, string cursorName) { return(scope.CursorManager.GetCursor(cursorName)); }
public static void DeclareCursor(this ICursorScope scope, CursorInfo cursorInfo) { scope.CursorManager.DeclareCursor(cursorInfo); }