Differences
This shows you the differences between two versions of the page.
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; | ||
+ | using System.Collections.ObjectModel; | ||
+ | |||
public class TColorList: List< | public class TColorList: List< | ||
{ | { | ||
Line 29: | Line 32: | ||
} | } | ||
| | ||
+ | /// | ||
+ | /// Populate list | ||
+ | /// | ||
private void PopulateList() | private void PopulateList() | ||
{ | { | ||
Line 75: | Line 81: | ||
} | } | ||
| | ||
+ | /// | ||
+ | /// Populate collection | ||
+ | /// | ||
private void PopulateCollection() | private void PopulateCollection() | ||
{ | { |