Ejemplo n.º 1
0
        /// <summary>
        ///  Helper function used to fire reproduction events.
        /// </summary>
        /// <param name="e">The reproduction event arguments.</param>
        /// <param name="clearOnly">Only clear the action, don't fire the event.</param>
        private void OnReproduceCompleted(ReproduceCompletedEventArgs e, bool clearOnly)
        {
            if (InProgressActions.ReproduceAction != null &&
                e.ActionID == InProgressActions.ReproduceAction.ActionID)
            {
                InProgressActions.SetReproduceAction(null);
            }

            if (!clearOnly && ReproduceCompleted != null)
            {
                ReproduceCompleted(this, e);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///  Helper function used to fire reproduction events.
        /// </summary>
        /// <param name="e">The reproduction event arguments.</param>
        /// <param name="clearOnly">Only clear the action, don't fire the event.</param>
        private void OnReproduceCompleted(ReproduceCompletedEventArgs e, bool clearOnly)
        {
            if (InProgressActions.ReproduceAction != null &&
                e.ActionID == InProgressActions.ReproduceAction.ActionID)
            {
                InProgressActions.SetReproduceAction(null);
            }

            if (!clearOnly && ReproduceCompleted != null)
            {
                ReproduceCompleted(this, e);
            }
        }