private bool CheckEventArgs(ManagerItemsChangedArgs <TSectorEntity> e, int actorCount, IList <TSectorEntity> actorList) { var isCountEquals = e.Items.Length == actorCount; var actorsInEventItems = actorList.All(actor => e.Items.Contains(actor)); return(isCountEquals && actorsInEventItems); }
private void PropContainerManager_Added(object sender, ManagerItemsChangedArgs <IPropContainer> e) { foreach (var container in e.Items) { CreateContainerViewModel(_nodeViewModels, container); } }