private void AddNewAction(List <Action> actions, BaseLayer baseLayer)
        {
            var depAction = EventsDependingActions.Select(ed => ed.Action).ToList();

            foreach (var action in actions)
            {
                if (!depAction.Contains(action))
                {
                    EventsDependingActions.Add(new EventsDependingAction
                    {
                        Action             = action,
                        EventListViewModel = new EventListViewModel(new ObservableCollection <Event>(), baseLayer)
                    });
                }
            }
        }
Exemple #2
0
        private void AddNewAction(ObservableCollection <Action> actions)
        {
            var lastAction = EventsDependingActions.Select(ed => ed.Action).ToList();

            foreach (var action in actions)
            {
                if (!lastAction.Contains(action))
                {
                    EventsDependingActions.Add(new EventsDependingAction
                    {
                        Action          = action,
                        EventsViewModel = new EventsViewModel(new ObservableCollection <Event>(), BaseLayer, base.ErrorCatcher)
                    });
                }
            }
        }