summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJEONGHYUN YUN <jh0506.yun@samsung.com>2016-10-12 17:25:38 +0900
committerJEONGHYUN YUN <jh0506.yun@samsung.com>2016-10-12 17:27:24 +0900
commit39244ad76d14240cb7dbf3e9af70bf1ce3478228 (patch)
tree211b2cca0409ea5928b5a283673b19b922408cbc
parent3a2d6d8ef2105ed194885d774bd9713914bafd56 (diff)
downloadelm-sharp-39244ad76d14240cb7dbf3e9af70bf1ce3478228.tar.gz
elm-sharp-39244ad76d14240cb7dbf3e9af70bf1ce3478228.tar.bz2
elm-sharp-39244ad76d14240cb7dbf3e9af70bf1ce3478228.zip
Change TestRunner's main list view from List to GenList (for TV)
Change-Id: I0a03f424d492b951f2a2f5c6feaf14fcf0fcf032 Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
-rw-r--r--ElmSharp.Test/TestRunner.cs17
1 files changed, 12 insertions, 5 deletions
diff --git a/ElmSharp.Test/TestRunner.cs b/ElmSharp.Test/TestRunner.cs
index f0992ce..4c95734 100644
--- a/ElmSharp.Test/TestRunner.cs
+++ b/ElmSharp.Test/TestRunner.cs
@@ -128,32 +128,39 @@ namespace ElmSharp.Test
box.Show();
conformant.SetContent(box);
- List list = new List(_firstPageWindow)
+ GenList list = new GenList(_firstPageWindow)
{
+ Homogeneous = true,
AlignmentX = -1,
AlignmentY = -1,
WeightX = 1,
WeightY = 1
};
+ GenItemClass defaultClass = new GenItemClass("default")
+ {
+ GetTextHandler = (data, part) =>
+ {
+ return string.Format("{0}",(string)data);
+ }
+ };
+
foreach (var tc in testCases)
{
- list.Append(tc.TestName);
+ list.Append(defaultClass, tc.TestName);
}
list.ItemSelected += (s, e) =>
{
foreach (var tc in testCases)
{
- if (tc.TestName == e.Item.Text)
+ if (tc.TestName == (string)(e.Item.Data))
{
StartTCFromList(tc);
break;
}
}
};
-
- list.Update();
list.Show();
box.PackEnd(list);