diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-01-14 08:07:43 +0100 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2021-02-06 20:28:02 +0100 |
| commit | 2ab44f600bd0ecab04d03ba08fdc17ea195babf2 (patch) | |
| tree | 916e61f3a6776ea97f73d77ea8b601684c2ad5f2 /Samples/BasicTests/BasicTests.cs | |
| parent | 0f08742ef206f006db97a8d2bc67b1c4cae34deb (diff) | |
label, cached line width in pixel in LineSpan struct, use stackalloc for a single utf8 conversion for size and print, perfs and samplebase
Diffstat (limited to 'Samples/BasicTests/BasicTests.cs')
| -rw-r--r-- | Samples/BasicTests/BasicTests.cs | 22 |
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; } |