diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-11-01 11:30:21 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-11-01 11:30:21 +0100 |
| commit | 516dfa48adbcbec0b2dc55dd33e1f96b89e2672a (patch) | |
| tree | f7324defc7fe77a4e5acf141b36431808ce221f0 /Tests | |
| parent | 96e1c971f30b8141c5245d341a26fc92b972cfe1 (diff) | |
Use Dictionary to store color names
Diffstat (limited to 'Tests')
| -rw-r--r-- | Tests/BasicTests.cs | 4 | ||||
| -rw-r--r-- | Tests/Showcase.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs index 9340fe88..8d0a8026 100644 --- a/Tests/BasicTests.cs +++ b/Tests/BasicTests.cs @@ -98,7 +98,7 @@ namespace Tests } get { return List2; } } - IList<Color> testList = Color.ColorDic.ToList(); + IList<Color> testList = Color.ColorDic.Values.ToList(); public IList<Color> TestList { set{ testList = value; @@ -131,7 +131,7 @@ namespace Tests void OnClear (object sender, MouseButtonEventArgs e) => TestList = null; - void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.ToList(); + void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.Values.ToList(); protected override void OnLoad (EventArgs e) { diff --git a/Tests/Showcase.cs b/Tests/Showcase.cs index 0d68d383..2639b0f7 100644 --- a/Tests/Showcase.cs +++ b/Tests/Showcase.cs @@ -160,7 +160,7 @@ namespace Tests } get { return List2; } } - IList<Color> testList = Color.ColorDic.ToList(); + IList<Color> testList = Color.ColorDic.Values.ToList(); public IList<Color> TestList { set{ testList = value; @@ -193,7 +193,7 @@ namespace Tests void OnClear (object sender, MouseButtonEventArgs e) => TestList = null; - void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.ToList(); + void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.Values.ToList(); } |