Пример #1
0
        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);
        }
Пример #2
0
 private void PropContainerManager_Added(object sender, ManagerItemsChangedArgs <IPropContainer> e)
 {
     foreach (var container in e.Items)
     {
         CreateContainerViewModel(_nodeViewModels, container);
     }
 }