⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 activities.cs

📁 xpdl的c#解析器 完全依照xpdl标准
💻 CS
字号:
using System;
using System.Collections;
using Nucleus.Common.Util;

namespace com.use.wfp.xpdl.elements
{
	/// <summary>
	/// Activities 的摘要说明。
	/// </summary>
	public class Activities:BaseElement
	{
		public Activity GetActivityById(String Id)
		{
			if(null == apps)
			{
				GetActivities();
			}
			foreach(Activity app in apps)
			{
				if(app.GetId().Equals(Id))
				{
					return app;
				}
			}
			throw new ObjectNotFound("Activity Not Found! Id=" +Id);
		}

		private IList apps;
		public IList GetActivities()
		{
			return GetChildren(apps, out apps, typeof(Activity), "Activity");
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -