Esempio n. 1
0
        /// <summary>
        /// Called when the transition we have just run has completed.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The e.</param>
        private void onTransitionCompleted(object sender, ZeroitTransitorEdit.Args e)
        {
            // We unregister from the completed event...
            ZeroitTransitorEdit transition = (ZeroitTransitorEdit)sender;

            transition.TransitionCompletedEvent -= onTransitionCompleted;

            // We remove the completed transition from our collection, and
            // run the next one...
            m_listTransitions.RemoveFirst();
            runNextTransition();
        }
        /// <summary>
        /// Called when a transition has completed.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The e.</param>
        private void onTransitionCompleted(object sender, ZeroitTransitorEdit.Args e)
        {
            // We stop observing the transition...
            ZeroitTransitorEdit transition = (ZeroitTransitorEdit)sender;

            transition.TransitionCompletedEvent -= onTransitionCompleted;

            // We remove the transition from the collection we're managing...
            lock (m_Lock)
            {
                m_Transitions.Remove(transition);
            }
        }