Beispiel #1
0
        public static ObservableCollection<Club> GetClubs()
        {
            ObservableCollection<Club> clubs = new ObservableCollection<Club>();
            Club club;

            // Liverpool
            club = new Club("Liverpool", new DateTime(1892, 1, 1), 45362);
            clubs.Add(club);

            // Manchester Utd.
            club = new Club("Manchester Utd.", new DateTime(1878, 1, 1), 76212);
            clubs.Add(club);

            // Chelsea
            club = new Club("Chelsea", new DateTime(1905, 1, 1), 42055);
            clubs.Add(club);

            // Arsenal
            club = new Club("Arsenal", new DateTime(1886, 1, 1), 60355);
            clubs.Add(club);

            return clubs;
        }
		public void Remove(Club club)
		{
			this.clubs.Remove(club);
		}
Beispiel #3
0
 public MainWindow()
 {
     InitializeComponent();
     this.radGridView.ItemsSource = Club.GetClubs();
 }
		public void Add(Club club)
		{
			this.clubs.Add(club);
		}