Пример #1
0
        } // end of GetCurrentActivities

        #endregion

        #region AddActivity

        public void AddActivity(Activity activity)
        {
            _currentActivities.Add(activity);
        } // end of AddActivity
Пример #2
0
        } // end of AddActivity

        #endregion

        #region RemoveActivity

        public void RemoveActivity(Activity activity)
        {
            _currentActivities.Remove(activity);
        } // end of RemoveActivity
Пример #3
0
        } // end of IsWaiting

        #endregion

        #region IsInOnlyActivity

        public bool IsInOnlyActivity(Activity activity)
        {
            return(CurrentActivities.Count == 1 && (CurrentActivities.First()) == activity);
        } // end of DoesOnlyActivity