Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
swdev:dotnet:lists_and_observablecollections [2013/03/14 15:27]
smayr
swdev:dotnet:lists_and_observablecollections [2013/03/14 15:35] (current)
smayr
Line 19: Line 19:
 Create a color list: Create a color list:
 <code csharp> <code csharp>
 +using System.Linq;  // Required for 'Where' lambda/linq statements
 +using System.Collections.ObjectModel; // Required for ObservableCollection
 +
 public class TColorList: List<TColor> public class TColorList: List<TColor>
 { {
Line 29: Line 32:
     }     }
          
 +    ///----------------------------------------------------------------------------------------
 +    /// Populate list
 +    ///----------------------------------------------------------------------------------------
     private void PopulateList()     private void PopulateList()
     {     {
Line 75: Line 81:
     }     }
          
 +    ///----------------------------------------------------------------------------------------
 +    /// Populate collection
 +    ///----------------------------------------------------------------------------------------
     private void PopulateCollection()     private void PopulateCollection()
     {     {