aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-05-13 18:16:02 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-05-13 18:16:02 +0200
commit6428afe998093c656a1e76a8cbebf96258c60a50 (patch)
tree385eb4858942a75b9f961f2f0d15eabcd55d95bb /Samples
parente6945d8495adfa3d33d33c2e49916be79993698d (diff)
store color as uint32
Diffstat (limited to 'Samples')
-rw-r--r--Samples/BasicTests/BasicTests.cs8
-rw-r--r--Samples/HelloWorld/ui/helloworld.crow6
-rw-r--r--Samples/ShowCase/main.cs4
3 files changed, 9 insertions, 9 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs
index 05bc0435..2fdc50ba 100644
--- a/Samples/BasicTests/BasicTests.cs
+++ b/Samples/BasicTests/BasicTests.cs
@@ -75,7 +75,7 @@ namespace tests
idx++;
break;
case Key.F1:
- TestList.Add ("new string");
+ //TestList.Add ("new string");
NotifyValueChanged ("TestList", TestList);
break;
case Key.F4:
@@ -223,9 +223,9 @@ namespace tests
}
}
- List<Color> testList = Color.ColorDic.Values//.OrderBy(c=>c.Hue)
+ List<Color> testList = null; //Color.ColorDic.Values//.OrderBy(c=>c.Hue)
//.ThenBy(c=>c.Value).ThenBy(c=>c.Saturation)
- .ToList ();
+ //.ToList ();
public List<Color> TestList {
set {
testList = value;
@@ -259,7 +259,7 @@ namespace tests
void OnClear (object sender, MouseButtonEventArgs e) => TestList = null;
void OnLoadList (object sender, MouseButtonEventArgs e) => TestList =
- Color.ColorDic.Values.OrderBy (c => c.Hue).ToList ();
+ null; //Color.ColorDic.Values.OrderBy (c => c.Hue).ToList ();
void command1 ()
{
diff --git a/Samples/HelloWorld/ui/helloworld.crow b/Samples/HelloWorld/ui/helloworld.crow
index 2d7a3176..2f65ac1d 100644
--- a/Samples/HelloWorld/ui/helloworld.crow
+++ b/Samples/HelloWorld/ui/helloworld.crow
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<Window Width="200" Height="200">
- <TextBox Text="Hello World" Background="Blue"/>
-</Window>
+<Container Margin="10" Background="Jet">
+ <!--<Widget Width="200" Height="200" Background="Blue"/>-->
+</Container>
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 ();
}