From: jpbruyere Date: Thu, 4 Aug 2016 11:12:30 +0000 (+0200) Subject: * Tests.csproj: X-Git-Tag: v0.4~18^2~11 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=3a01c455e09af25109239ab7ca32e66ea1ebc99b;p=jp%2Fcrow.git * Tests.csproj: * BasicTests.cs: * TreeView.crow: * welcome.crow: * test4.crow: * testWindow2.goml: * testTreeView.crow: * testDirViewer.crow: update tests * Interface.cs: * OpenTKGameWindow.cs: perf measures * IMLStream.cs: datas prop * TemplatedControl.cs: ItemTemplate * ListBox.cs: thread sync nouveau fichier : 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 @@  - -