示例#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);
 }