From 2ab44f600bd0ecab04d03ba08fdc17ea195babf2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Thu, 14 Jan 2021 08:07:43 +0100 Subject: label, cached line width in pixel in LineSpan struct, use stackalloc for a single utf8 conversion for size and print, perfs and samplebase --- Samples/BasicTests/BasicTests.cs | 22 ++++------------------ Samples/BasicTests/BasicTests.csproj | 3 +++ 2 files changed, 7 insertions(+), 18 deletions(-) (limited to 'Samples/BasicTests') 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 ($"