예제 #1
0
파일: ISzl.cs 프로젝트: rallyhealth/szl
 public ISzl GetPreviousState(ISzl current)
 {
     if (current == null)
     {
         throw new ArgumentException("Current cannot be null");
     }
     return(DepthFirstSearch(current as SzlBase, SearchDirection.Back, false));
 }
예제 #2
0
        protected override bool Equals(ISzl other)
        {
            var otherMvc = other as ActionableSzl;

            if (otherMvc == null)
            {
                return(false);
            }
            return(BoundAction.Matches(otherMvc.BoundAction));
        }
예제 #3
0
파일: ISzl.cs 프로젝트: rallyhealth/szl
 public ISzl GetNextState(ISzl current)
 {
     return(DepthFirstSearch(current as SzlBase, SearchDirection.Forward, current == null));
 }
예제 #4
0
파일: ISzl.cs 프로젝트: rallyhealth/szl
 protected virtual bool Equals(ISzl other)
 {
     return(other != null && other.GetType() == GetType());
 }