From b76c6bf6ded447932634dd97024c1e423aa35e4b Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Sun, 13 Sep 2015 15:07:06 +0200 Subject: [PATCH] listbox time loading tests --- Tests/GOLIBTest_Listbox.cs | 17 +++++------------ Tests/Interfaces/test_Listbox.goml | 17 ++++++++++++++++- Tests/Tests.csproj | 2 +- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/Tests/GOLIBTest_Listbox.cs b/Tests/GOLIBTest_Listbox.cs index f3064dd1..607b2f05 100644 --- a/Tests/GOLIBTest_Listbox.cs +++ b/Tests/GOLIBTest_Listbox.cs @@ -13,6 +13,8 @@ using System.Diagnostics; using go; using System.Threading; using System.Collections.Generic; +using System.IO; +using System.Linq; namespace test @@ -62,18 +64,7 @@ namespace test // new ClsItem("string 2"), // new ClsItem("string 3") // }); - public List TestList = new List(new string[] - { - "string 1", - "string 2", -// "string 3", -// "string 4", -// "string 5", -// "string 6", -// "string 7", -// "string 8", - "string 9" - }); + public List TestList; // string[] TestList = new string[] // { // "string 1", @@ -84,6 +75,8 @@ namespace test protected override void OnLoad (EventArgs e) { base.OnLoad (e); + + TestList = Directory.GetFileSystemEntries("/mnt/data/MagicCardDataBase/", "*.txt",SearchOption.AllDirectories).ToList(); LoadInterface("Interfaces/test_Listbox.goml"); // TestList [1].Field = "test string"; diff --git a/Tests/Interfaces/test_Listbox.goml b/Tests/Interfaces/test_Listbox.goml index 2263793a..600a0317 100755 --- a/Tests/Interfaces/test_Listbox.goml +++ b/Tests/Interfaces/test_Listbox.goml @@ -1,3 +1,18 @@  - + + + + diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index ce666004..db5b7b47 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -8,7 +8,7 @@ Exe Tests Tests - test.GOLIBTest_4 + test.GOLIBTest_Listbox v4.5 ..\bin\$(configuration) obj\$(configuration) -- 2.47.3