Example #1
0
        private void ApplySelectedItems()
        {
            if (!SourceItems.Any(x => x.IsSelected))
            {
                return;
            }

            Settings.Current.RailwayIdPriority = SourceItems
                                                 .Where(x => x.IsSelected)
                                                 .OrderBy(x => x.Order)
                                                 .SelectMany(x => x.RailwayIds)
                                                 .ToArray();
        }
Example #2
0
 public bool CanApplyExecute()
 {
     return(SourceItems.Any(x => x.IsSelected) && !Settings.Current.IsInitiating);
 }