Пример #1
0
        public MainViewModel()
        {
            SortButtons = new SortButtonsViewModel <OrderBy>();
            SortButtons.SortOrderChanged += Sort;

            GuitarPlayers = new ObservableCollection <GuitarPlayerViewModel>(
                GuitarPlayerCollection.Players.Select(p => new GuitarPlayerViewModel(p)));
        }
Пример #2
0
        public MainViewModel()
        {
            CultureChangeCommand = new Command
            {
                CanExecuteDelegate = x => true,
                ExecuteDelegate    = x => this.CascadeCultureChange(x.ToString()),
            };

            SortButtons = new SortButtonsViewModel <OrderBy>();
            SortButtons.SortOrderChanged += Sort;

            GuitarPlayers = new ObservableCollection <GuitarPlayerViewModel>(
                GuitarPlayerCollection.Players.Select(p => new GuitarPlayerViewModel(p)));
        }