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(); }
public bool CanApplyExecute() { return(SourceItems.Any(x => x.IsSelected) && !Settings.Current.IsInitiating); }