summaryrefslogtreecommitdiff
path: root/ElmSharp.Test
diff options
context:
space:
mode:
authorrina6350.you <rina6350.you@samsung.com>2017-05-31 18:58:29 +0900
committerrina6350.you <rina6350.you@samsung.com>2017-05-31 18:58:29 +0900
commit99b1a4659b1192e0c72d9a706a80c694635d5230 (patch)
treee4239a19406629cf36f33d61195bb0d9d21555b3 /ElmSharp.Test
parent18604b62a7509bcb4b1bd312fd8f19b03188b663 (diff)
downloadelm-sharp-99b1a4659b1192e0c72d9a706a80c694635d5230.tar.gz
elm-sharp-99b1a4659b1192e0c72d9a706a80c694635d5230.tar.bz2
elm-sharp-99b1a4659b1192e0c72d9a706a80c694635d5230.zip
Add some scenario for checking the clicked event of ToolbarItem
Change-Id: I55c9513b411643535192ec94a9d9b280f1a28746
Diffstat (limited to 'ElmSharp.Test')
-rwxr-xr-xElmSharp.Test/TC/ToolbarTest3.cs21
1 files changed, 14 insertions, 7 deletions
diff --git a/ElmSharp.Test/TC/ToolbarTest3.cs b/ElmSharp.Test/TC/ToolbarTest3.cs
index 6261aed..5568088 100755
--- a/ElmSharp.Test/TC/ToolbarTest3.cs
+++ b/ElmSharp.Test/TC/ToolbarTest3.cs
@@ -52,13 +52,6 @@ namespace ElmSharp.Test
toolbar.Show();
outterBox.PackEnd(toolbar);
- for (int i = 0; i < 5; i++)
- {
- ToolbarItem item = toolbar.Append(string.Format("{0} home", i), "home");
- Color bgColor = Color.FromRgb(rnd.Next(255), rnd.Next(255), rnd.Next(255));
- item.SetPartColor("bg", bgColor);
- }
-
toolbar.Selected += (s, e) =>
{
e.Item.DeletePartColor("bg");
@@ -70,6 +63,20 @@ namespace ElmSharp.Test
};
lb.Show();
outterBox.PackEnd(lb);
+
+ for (int i = 0; i < 5; i++)
+ {
+ ToolbarItem item = toolbar.Append(string.Format("{0} home", i), "home");
+ Color bgColor = Color.FromRgb(rnd.Next(255), rnd.Next(255), rnd.Next(255));
+ item.SetPartColor("bg", bgColor);
+
+ item.Clicked += (s, e) =>
+ {
+ lb.Text = (s as ToolbarItem).Text+" clicked";
+ };
+ }
+
+
conformant.SetContent(outterBox);
}
}