예제 #1
0
 public Fox GetFoxByName(string name)
 {
     CurrentFox = ListOfFoxes.Find(fox => fox.Name.Equals(name));
     return(CurrentFox);
 }
예제 #2
0
 public void SetLoggedFox(string name)
 {
     LoggedFox = ListOfFoxes.First(f => name == f.Name);
 }
예제 #3
0
 public void AddFoxToDatabase(Fox fox)
 {
     ListOfFoxes.Add(fox);
 }
예제 #4
0
 public Fox GetFoxByName(string name)
 {
     return(ListOfFoxes.Find(f => f.Name == name));
 }
예제 #5
0
 public List <Fox> AddFox(string name)
 {
     ListOfFoxes.Add(new Fox(name));
     return(ListOfFoxes);
 }
예제 #6
0
 public Fox SetCurrentFox(string name)
 {
     CurrentFox = ListOfFoxes.First(fox => name == fox.Name);
     return(CurrentFox);
 }
예제 #7
0
 public Fox FindFoxByName(string name)
 {
     CurrentFox = ListOfFoxes.Find(f => f.Name == name);
     return(CurrentFox);
 }
예제 #8
0
 public List <Fox> AddFox(Fox fox)
 {
     ListOfFoxes.Add(fox);
     return(ListOfFoxes);
 }