private bool CheckNext(Node node) { if (NextList.Count > 0) { if (NextList.Contains(node)) { return(false); } else { bool hasError = true; foreach (Node n in NextList) { CheckNodeVisitor visitor = new CheckNodeVisitor(); n.Accept(visitor); hasError = visitor.CheckNext(node); if (!hasError) { break; } } return(hasError); } } else { return(true); } }
public void addToMemorized() { CurrentFlashcard = NextList.First(); NextList.RemoveAt(0); Memorized++; NotMemorized--; }
public void addToNotMemorized() { CurrentFlashcard = NextList.First(); int temp = NextList[0]; NextList.RemoveAt(0); NextList.Add(temp); }
public bool AddNext(Node node) { if (this != node) { NextList.Add(node); return(true); } return(false); }
public int getNext() { if (NextList.Count > 0) { return(NextList.First()); } else { return(-1); } }
public void AddNext(Node node) { NextList.Add(node); }