コード例 #1
0
ファイル: Activity.cs プロジェクト: alexfordc/Au
 /// <summary>
 /// Wait until or SubActivities are completed. Throw an exception on timeout.
 /// </summary>
 /// <param name="activities"></param>
 /// <param name="timeout"></param>
 public static void WaitActivities(ActivityCollection activities, int timeout)
 {
     for (int i = 0; i < activities.Count; i++)
     {
         WaitActivity(activities[i], timeout);
     }
 }
コード例 #2
0
ファイル: Activity.cs プロジェクト: alexfordc/Au
 /// <summary>
 /// Throw an exception if one of the activities has an exception.
 /// </summary>
 /// <param name="activities"></param>
 public static void CheckActivitiesException(ActivityCollection activities)
 {
     for (int i = 0; i < activities.Count; i++)
     {
         CheckActivityException(activities[i]);
     }
 }
コード例 #3
0
ファイル: Activity.cs プロジェクト: alexfordc/Au
        /// <summary>
        /// Constructor
        /// </summary>
        public ActivityBase()
        {
            mActivityCount++;
            Name = "Activity " + mActivityCount.ToString();

            mSubActivities = new ActivityCollection(this);
        }
コード例 #4
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ActivityBase()
        {
            int currentCount;

            lock (sLock) // Make sure multiple threads don't step on each other in accessing the global count.
            {
                sActivityCount++;
                currentCount = sActivityCount; // Cache the result so we can exit the lock.
            }

            Name = "Activity " + currentCount.ToString();

            mSubActivities = new ActivityCollection(this);
        }
コード例 #5
0
			public Enumerator(ActivityCollection collection)
			{
				this.wrapped = collection.mList.GetEnumerator();
			}
コード例 #6
0
 public Enumerator(ActivityCollection collection)
 {
     this.wrapped = collection.mList.GetEnumerator();
 }
コード例 #7
0
ファイル: Activity.cs プロジェクト: wsrf2009/KnxUiEditor
		/// <summary>
		/// Throw an exception if one of the activities has an exception.
		/// </summary>
		/// <param name="activities"></param>
		public static void CheckActivitiesException(ActivityCollection activities)
		{
			for (int i = 0; i < activities.Count; i++)
			{
				CheckActivityException(activities[i]);
			}
		}
コード例 #8
0
ファイル: Activity.cs プロジェクト: wsrf2009/KnxUiEditor
		/// <summary>
		/// Wait until or SubActivities are completed. Throw an exception on timeout.
		/// </summary>
		/// <param name="activities"></param>
		/// <param name="timeout"></param>
		public static void WaitActivities(ActivityCollection activities, int timeout)
		{
			for (int i = 0; i < activities.Count; i++)
			{
				WaitActivity(activities[i], timeout);
			}
		}
コード例 #9
0
ファイル: Activity.cs プロジェクト: wsrf2009/KnxUiEditor
		/// <summary>
		/// Constructor
		/// </summary>
		public ActivityBase()
		{
			mActivityCount++;
			Name = "Activity " + mActivityCount.ToString();

			mSubActivities = new ActivityCollection(this);
		}