using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;
using System.Collections;
using Telerik.Windows.Data;
using System.Windows.Input;
using Telerik.Windows.Controls;
using System.Windows;

namespace RadGridView_WPF_AR_1
{
	public class MyViewModel
	{
		public event PropertyChangedEventHandler PropertyChanged;

		private QueryableCollectionView clubs;

		public QueryableCollectionView Clubs
		{
			get
			{
				if (this.clubs == null)
				{
					this.clubs = new QueryableCollectionView(Club.GetClubs());
				}

				return this.clubs;
			}
		}

        public ICommand AddCommand
        {
            get
            {
                return new DelegateCommand((s) => { MessageBox.Show("Command is executed!"); });
            }
        }        
	}
}
