Exemple #1
0
 public ISzl GetPreviousState(ISzl current)
 {
     if (current == null)
     {
         throw new ArgumentException("Current cannot be null");
     }
     return(DepthFirstSearch(current as SzlBase, SearchDirection.Back, false));
 }
Exemple #2
0
        protected override bool Equals(ISzl other)
        {
            var otherMvc = other as ActionableSzl;

            if (otherMvc == null)
            {
                return(false);
            }
            return(BoundAction.Matches(otherMvc.BoundAction));
        }
Exemple #3
0
 public ISzl GetNextState(ISzl current)
 {
     return(DepthFirstSearch(current as SzlBase, SearchDirection.Forward, current == null));
 }
Exemple #4
0
 protected virtual bool Equals(ISzl other)
 {
     return(other != null && other.GetType() == GetType());
 }