示例#1
0
 /// <summary>
 /// 是否已完成引导
 /// </summary>
 /// <param name="guideStep"></param>
 /// <returns></returns>
 public bool IsCompleteStep(uint guideStep)
 {
     if (GroupSteps.Contains(guideStep) && LastestDoStep != 0)
     {
         int lastIndex   = GroupSteps.IndexOf(LastestDoStep);
         int targetIndex = GroupSteps.IndexOf(guideStep);
         return(lastIndex >= targetIndex);
     }
     return(false);
 }
示例#2
0
        /// <summary>
        /// 尝试获取下一个可执行的步骤
        /// </summary>
        /// <param name="step"></param>
        /// <returns></returns>
        public bool TryGetNextStep(out uint step)
        {
            bool succes = false;

            step = 0;
            if (LastestDoStep == 0)
            {
                if (TryGetStep(0, out step))
                {
                    succes = true;
                }
            }
            else if (null != GroupSteps && GroupSteps.Contains(LastestDoStep))
            {
                int index = GroupSteps.IndexOf(LastestDoStep);
                if (index < GroupSteps.Count - 1)
                {
                    step   = GroupSteps[index + 1];
                    succes = true;
                }
            }
            return(succes);
        }