public void UpdateFeeder(Feeder feeder) { foreach (Feeder current in feeders) { if ((current.FeederID == feeder.FeederID) && (current.OwnerID == feeder.OwnerID)) { current.Update(feeder); } } }
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; }
public void AddFeeder(Feeder feeder) { feeders.Add(feeder); }