Exemple #1
0
 public void UpdateFeeder(Feeder feeder)
 {
     foreach (Feeder current in feeders)
     {
         if ((current.FeederID == feeder.FeederID) && (current.OwnerID == feeder.OwnerID))
         {
             current.Update(feeder);
         }
     }
 }
Exemple #2
0
 public void Update(Feeder feeder)
 {
     AmountOfFeed = feeder.AmountOfFeed;
     FeederID     = feeder.FeederID;
     OwnerID      = feeder.OwnerID;
     PortionSize  = feeder.PortionSize;
     Tag          = feeder.Tag;
     Type         = feeder.Type;
     Schedule     = feeder.Schedule;
     Name         = feeder.Name;
 }
Exemple #3
0
 public void AddFeeder(Feeder feeder)
 {
     feeders.Add(feeder);
 }