From 3a01c455e09af25109239ab7ca32e66ea1ebc99b Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Thu, 4 Aug 2016 13:12:30 +0200 Subject: [PATCH] * Tests.csproj: * BasicTests.cs: * TreeView.crow: * welcome.crow: * test4.crow: * testWindow2.goml: * testTreeView.crow: * testDirViewer.crow: update tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * Interface.cs: * OpenTKGameWindow.cs: perf measures * IMLStream.cs: datas prop * TemplatedControl.cs: ItemTemplate * ListBox.cs: thread sync nouveau fichier : Tests/test.style --- Templates/TreeView.crow | 2 +- Tests/BasicTests.cs | 10 +- Tests/Interfaces/Divers/testWindow2.goml | 55 +++--- Tests/Interfaces/Divers/welcome.crow | 7 +- Tests/Interfaces/Unsorted/test4.crow | 169 ------------------- Tests/Interfaces/Unsorted/testDirViewer.crow | 6 +- Tests/Interfaces/Unsorted/testTreeView.crow | 37 +++- Tests/OpenTKGameWindow.cs | 5 +- Tests/Tests.csproj | 4 +- Tests/test.style | 13 ++ src/GraphicObjects/ListBox.cs | 89 ++-------- src/GraphicObjects/TemplatedControl.cs | 27 +-- src/IMLStream.cs | 4 +- src/Interface.cs | 10 +- 14 files changed, 147 insertions(+), 291 deletions(-) delete mode 100755 Tests/Interfaces/Unsorted/test4.crow create mode 100644 Tests/test.style diff --git a/Templates/TreeView.crow b/Templates/TreeView.crow index 82d2c3e9..8915e154 100644 --- a/Templates/TreeView.crow +++ b/Templates/TreeView.crow @@ -1,6 +1,6 @@ - diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs index 0733f189..0c515aa6 100644 --- a/Tests/BasicTests.cs +++ b/Tests/BasicTests.cs @@ -3,6 +3,7 @@ using Crow; using System.Collections.Generic; using System.Linq; using System.IO; +using System.Reflection; namespace Tests @@ -19,7 +20,10 @@ namespace Tests #region Test values for Binding public int intValue = 25; - + DirectoryInfo curDir = new DirectoryInfo (Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)); + public FileSystemInfo[] CurDirectory { + get { return curDir.GetFileSystemInfos (); } + } public int IntValue { get { return intValue; @@ -105,6 +109,10 @@ namespace Tests GraphicObject w = CrowInterface.LoadInterface ("Interfaces/Divers/testWindow.goml"); w.DataSource = this; return; + } else if (e.Key == OpenTK.Input.Key.F5) { + GraphicObject w = CrowInterface.LoadInterface ("Interfaces/Divers/testWindow2.goml"); + w.DataSource = this; + return; } else if (e.Key == OpenTK.Input.Key.F2) idx--; else if (e.Key == OpenTK.Input.Key.F3) diff --git a/Tests/Interfaces/Divers/testWindow2.goml b/Tests/Interfaces/Divers/testWindow2.goml index 6fb61db0..7f0caf31 100755 --- a/Tests/Interfaces/Divers/testWindow2.goml +++ b/Tests/Interfaces/Divers/testWindow2.goml @@ -1,26 +1,33 @@ - - - + + + + + + + + + + + + + + + + + diff --git a/Tests/Interfaces/Divers/welcome.crow b/Tests/Interfaces/Divers/welcome.crow index 8a98b380..65fc3577 100644 --- a/Tests/Interfaces/Divers/welcome.crow +++ b/Tests/Interfaces/Divers/welcome.crow @@ -1,5 +1,6 @@  - -