diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-04 13:12:30 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-04 14:29:18 +0200 |
| commit | 3a01c455e09af25109239ab7ca32e66ea1ebc99b (patch) | |
| tree | 27a7c6923c7285d1a8432ae393c8a5fb8981a28d /Tests/BasicTests.cs | |
| parent | b24819ffb8f629fb0ed70064f90357a42653ae5d (diff) | |
* 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
Diffstat (limited to 'Tests/BasicTests.cs')
| -rw-r--r-- | Tests/BasicTests.cs | 10 |
1 files changed, 9 insertions, 1 deletions
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) |