diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-13 18:16:02 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-13 18:16:02 +0200 |
| commit | 6428afe998093c656a1e76a8cbebf96258c60a50 (patch) | |
| tree | 385eb4858942a75b9f961f2f0d15eabcd55d95bb /Samples/ShowCase | |
| parent | e6945d8495adfa3d33d33c2e49916be79993698d (diff) | |
store color as uint32
Diffstat (limited to 'Samples/ShowCase')
| -rw-r--r-- | Samples/ShowCase/main.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Samples/ShowCase/main.cs b/Samples/ShowCase/main.cs index 8a91a894..7650fb97 100644 --- a/Samples/ShowCase/main.cs +++ b/Samples/ShowCase/main.cs @@ -169,7 +169,7 @@ namespace tests } get { return List2; } } - IList<Color> testList = Color.ColorDic.Values.OrderBy(c=>c.Hue).ThenBy(c=>c.Value).ToList (); + IList<Color> testList = null;// Enum.GetValues (typeof (Colors)).Cast<Color> ().ToList (); // Color.ColorDic.Values.OrderBy(c=>c.Hue).ThenBy(c=>c.Value).ToList (); public IList<Color> TestList { set { testList = value; @@ -202,7 +202,7 @@ namespace tests void OnClear (object sender, MouseButtonEventArgs e) => TestList = null; - void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.Values.ToList (); + void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Enum.GetValues (typeof (Colors)).Cast<Color> ().ToList (); } |