コード例 #1
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     Console.WriteLine("Natural Field Added");
     Console.WriteLine("Press enter to return to Main Menu");
     Console.ReadLine();
 }
コード例 #2
0
        public void AddFacility(object facility)
        {
            switch (facility)
            {
            case ChickenHouse C:
                ChickenHouses.Add(C);
                break;

            case DuckHouse D:
                DuckHouses.Add(D);
                break;

            case PlowedField P:
                PlowedFields.Add(P);
                break;

            case GrazingField G:
                GrazingFields.Add(G);
                break;

            case NaturalField N:
                NaturalFields.Add(N);
                break;
            }
        }
コード例 #3
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     Console.WriteLine("Natural Field has been added");
     Console.WriteLine("Press enter key to continue");
     Console.ReadLine();
 }
コード例 #4
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     PlantFields.Add(field);
     Console.WriteLine("A new natural field has been created.");
     Thread.Sleep(2000);
 }
コード例 #5
0
 public void AddNaturalField(NaturalField field)
 {
     try
     {
         NaturalFields.Add(field);
         //Ticket #29
         Console.WriteLine("A new natural field has been created!");
         Console.WriteLine("Press enter to continue.");
         Console.ReadLine();
     }
     catch (Exception ex)
     {
         Console.WriteLine("Could not add a natural field.");
         Console.WriteLine("Press enter to continue.");
         Console.ReadLine();
     }
 }
コード例 #6
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
 }
コード例 #7
0
 public void AddNaturalField(NaturalField plant)
 {
     NaturalFields.Add(plant);
 }
コード例 #8
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     Console.WriteLine($"New Natural Field has been created!");
     Console.ReadLine();
 }
コード例 #9
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     NaturalAndPlowed.Add(field);
 }
コード例 #10
0
ファイル: Farm.cs プロジェクト: jonizzy113/TrestlebridgeFarms
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     Console.WriteLine("Natural Field successfully created");
     Thread.Sleep(1500);
 }
コード例 #11
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     AvailableNaturalFields.Add(field);
 }
コード例 #12
0
 public void AddNaturalField(NaturalField field)
 {
     NaturalFields.Add(field);
     Console.WriteLine("You have added a Natural field!");
 }
 public void AddNaturalField(NaturalField naturalField)
 {
     NaturalFields.Add(naturalField);
 }