private void WhenAgentDirty(IAgent agent) { agent.BuildOnlines(); _laborHoursCountingModel.SummarizeLaborRule(agent); if (_changedAgentList == null) { _changedAgentList = new List <IAgent>(BindableAgents.Count); } if (!_changedAgentList.Contains(agent)) { _changedAgentList.Add(agent); } }