aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/BasicTests/BasicTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/BasicTests/BasicTests.cs')
-rw-r--r--Samples/BasicTests/BasicTests.cs22
1 files changed, 4 insertions, 18 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs
index 755c4a0b..dcf38db4 100644
--- a/Samples/BasicTests/BasicTests.cs
+++ b/Samples/BasicTests/BasicTests.cs
@@ -28,14 +28,14 @@ namespace tests
// += KeyboardKeyDown1;
//testFiles = new string [] { @"Interfaces/Experimental/testDock.crow" };
- //testFiles = new string [] { @"Interfaces/Divers/welcome.crow" };
+ testFiles = new string [] { @"Interfaces/Divers/welcome.crow" };
//testFiles = new string [] { @"Interfaces/TemplatedGroup/3.crow" };
//testFiles = new string [] { @"Interfaces/Divers/testShape.crow" };
//testFiles = new string [] { @"Interfaces/TemplatedControl/testEnumSelector.crow" };
//testFiles = new string [] { @"Interfaces/Divers/all.crow" };
//testFiles = new string [] { @"Interfaces/Divers/gauge.crow" };
//testFiles = new string [] { @"Interfaces/Stack/StretchedInFit4.crow" };
- testFiles = new string [] { @"Interfaces/TemplatedGroup/1.crow" };
+ //testFiles = new string [] { @"Interfaces/TemplatedGroup/1.crow" };
//testFiles = new string [] { @"Interfaces/Divers/colorPicker2.crow" };
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Container", "*.crow")).ToArray ();
@@ -62,12 +62,7 @@ namespace tests
switch (key) {
case Key.Escape:
Quit ();
- break;
- case Key.F2:
- //if (IsKeyDown (Key.LeftShift))
- //DbgLogger.Reset ();
- //DbgLogger.save (this);
- return false;
+ break;
case Key.F3:
idx--;
break;
@@ -78,15 +73,6 @@ namespace tests
//TestList.Add ("new string");
NotifyValueChanged ("TestList", TestList);
break;
- case Key.F5:
- Load ("Interfaces/Divers/testFileDialog.crow").DataSource = this;
- return false;
- case Key.F6:
- Load ("Interfaces/Divers/0.crow").DataSource = this;
- return false;
- case Key.F7:
- Load ("Interfaces/Divers/perfMeasures.crow").DataSource = this;
- return false;
default:
return base.OnKeyDown (key);
}
@@ -105,7 +91,7 @@ namespace tests
#endif
Load (testFiles [idx]).DataSource = this;
} catch (Exception ex) {
- (LoadIMLFragment ($"<Label Background='Red' Foreground='White' Height='Fit' Width='Stretched' Multiline='true' VerticalAlignment='Bottom' Margin='5' />") as Label).Text = ex.ToString();
+ (LoadIMLFragment ($"<Label Background='Red' Foreground='White' Height='Fit' Width='Stretched' Multiline='true' VerticalAlignment='Bottom' Margin='5' />") as OldLabel).Text = ex.ToString();
Console.WriteLine (ex.Message + "\n" + ex.InnerException);
//MessageBox.Show (CurrentInterface, MessageBox.Type.Error, ex.Message + "\n" + ex.InnerException.Message).Modal = true;
}