/// <summary>
        /// Determines whether [is waiting for fist focus loss] [the specified work surface key].
        /// </summary>
        /// <param name="workSurfaceKey">The work surface key.</param>
        /// <returns></returns>
        public static bool IsWaitingForFistFocusLoss(WorkSurfaceKey workSurfaceKey)
        {
            if (_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString()))
            {
                return(_resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()]);
            }

            return(false);
        }
        /// <summary>
        /// Prunes the workflow from caches.
        /// </summary>
        /// <param name="workSurfaceKey">The work surface key.</param>
        public static void PruneWorkflowFromCaches(WorkSurfaceKey workSurfaceKey)
        {
            if (_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString()))
            {
                _resourcesCurrentlyWaitingForFirstFocusLoss.Remove(workSurfaceKey.ToString());
            }

            if (_resourcesCurrentlyInOpeningState.Contains(workSurfaceKey))
            {
                _resourcesCurrentlyInOpeningState.Remove(workSurfaceKey);
            }

            if (_resourcesCurrentlyInOpeningStateWaitingForLoad.Contains(workSurfaceKey))
            {
                _resourcesCurrentlyInOpeningStateWaitingForLoad.Remove(workSurfaceKey);
            }

            if (_resourceCurrentlyWaitingForWaterMarkUpdates.Contains(workSurfaceKey))
            {
                _resourceCurrentlyWaitingForWaterMarkUpdates.Remove(workSurfaceKey);
            }
        }
 /// <summary>
 /// Removes the workflow waiting for first focus loss.
 /// </summary>
 /// <param name="workSurfaceKey">The work surface key.</param>
 public static void RemoveWorkflowWaitingForFirstFocusLoss(WorkSurfaceKey workSurfaceKey)
 {
     _resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()] = false;
 }
Example #4
0
 /// <summary>
 /// Determines whether [is loaded information focus loss catalog] [the specified work surface key].
 /// </summary>
 /// <param name="workSurfaceKey">The work surface key.</param>
 /// <returns></returns>
 public static bool IsLoadedInFocusLossCatalog(WorkSurfaceKey workSurfaceKey)
 {
     return(_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString()));
 }
 /// <summary>
 /// Removes the workflow waiting for first focus loss.
 /// </summary>
 /// <param name="workSurfaceKey">The work surface key.</param>
 public static void RemoveWorkflowWaitingForFirstFocusLoss(WorkSurfaceKey workSurfaceKey)
 {
     _resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()] = false;
 }
        /// <summary>
        /// Prunes the workflow from caches.
        /// </summary>
        /// <param name="workSurfaceKey">The work surface key.</param>
        public static void PruneWorkflowFromCaches(WorkSurfaceKey workSurfaceKey)
        {
            if(_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString()))
            {
                _resourcesCurrentlyWaitingForFirstFocusLoss.Remove(workSurfaceKey.ToString());
            }

            if(_resourcesCurrentlyInOpeningState.Contains(workSurfaceKey))
            {
                _resourcesCurrentlyInOpeningState.Remove(workSurfaceKey);
            }

            if(_resourcesCurrentlyInOpeningStateWaitingForLoad.Contains(workSurfaceKey))
            {
                _resourcesCurrentlyInOpeningStateWaitingForLoad.Remove(workSurfaceKey);
            }

            if(_resourceCurrentlyWaitingForWaterMarkUpdates.Contains(workSurfaceKey))
            {
                _resourceCurrentlyWaitingForWaterMarkUpdates.Remove(workSurfaceKey);
            }
        }
 /// <summary>
 /// Determines whether [is loaded information focus loss catalog] [the specified work surface key].
 /// </summary>
 /// <param name="workSurfaceKey">The work surface key.</param>
 /// <returns></returns>
 public static bool IsLoadedInFocusLossCatalog(WorkSurfaceKey workSurfaceKey)
 {
     return _resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString());
 }
        /// <summary>
        /// Determines whether [is waiting for fist focus loss] [the specified work surface key].
        /// </summary>
        /// <param name="workSurfaceKey">The work surface key.</param>
        /// <returns></returns>
        public static bool IsWaitingForFistFocusLoss(WorkSurfaceKey workSurfaceKey)
        {
            if(_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString()))
            {
                return _resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()];
            }

            return false;
        }