예제 #1
0
        /// <summary>
        /// 添加页面
        /// </summary>
        /// <param name="name">页面名称</param>
        /// <param name="pageType">页面类型</param>
        /// <param name="successPage">默认成功页面</param>
        public void Add(string name, Type pageType, string successPage)
        {
            var nextPages = new MFlowDict();

            nextPages.Add(IDNENTITY_NAME_SUCCESS, successPage);
            Add(MPageElement.Of(name, pageType, MTimeout.Default, nextPages));
        }
예제 #2
0
 /// <summary>
 /// 添加页面
 /// </summary>
 /// <param name="element">页面元素</param>
 public void Add(MPageElement element)
 {
     if (Has(element.Name))
     {
         throw MFlowException.Of("已存在此页面");
     }
     AllPages.Add(element);
 }
예제 #3
0
 /// <summary>
 /// 添加页面
 /// </summary>
 /// <param name="name">页面名称</param>
 /// <param name="pageType">页面类型</param>
 /// <param name="timeout">超时时间</param>
 public void Add(string name, Type pageType, int timeout)
 {
     Add(MPageElement.Of(name, pageType, timeout));
 }
예제 #4
0
 /// <summary>
 /// 添加页面
 /// </summary>
 /// <param name="name">页面名称</param>
 /// <param name="pageType">页面类型</param>
 public void Add(string name, Type pageType)
 {
     Add(MPageElement.Of(name, pageType, MTimeout.Default));
 }
예제 #5
0
 /// <summary>
 /// 添加页面
 /// </summary>
 /// <param name="name">页面名称</param>
 /// <param name="pageType">页面类型</param>
 /// <param name="timeout">超时时间</param>
 /// <param name="nextPages">后面页面对应关系</param>
 public void Add(string name, Type pageType, int timeout, MFlowDict nextPages)
 {
     Add(MPageElement.Of(name, pageType, timeout, nextPages));
 }