aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-02 01:18:31 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-02 01:18:31 +0200
commitd137c0e74445b540bcdafc7a9e04463b4199c076 (patch)
tree674372c05f9b6e8b34e8cf4a8ffe4b464328c377 /Samples
parentd46cbe601a9d5d4437f256a496f29a3fe6881da8 (diff)
styling constants
Diffstat (limited to 'Samples')
-rw-r--r--Samples/BasicTests/BasicTests.cs6
-rw-r--r--Samples/common/SampleBase.cs2
2 files changed, 6 insertions, 2 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs
index fba4b70a..1a9340d5 100644
--- a/Samples/BasicTests/BasicTests.cs
+++ b/Samples/BasicTests/BasicTests.cs
@@ -15,6 +15,7 @@ namespace tests
#if NETCOREAPP3_1
DllMapCore.Resolve.Enable (true);
#endif
+
using (BasicTests app = new BasicTests ()) {
app.Run ();
}
@@ -98,8 +99,11 @@ namespace tests
else if (idx < 0)
idx = testFiles.Length - 1;
+#if NETCOREAPP3_1
Console.WriteLine ($"Loading {testFiles [idx]}. {AppDomain.CurrentDomain.MonitoringSurvivedMemorySize}");
-
+#else
+ Console.WriteLine ($"Loading {testFiles [idx]}. {GC.GetTotalMemory(true)}");
+#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();
diff --git a/Samples/common/SampleBase.cs b/Samples/common/SampleBase.cs
index 6800e9ef..0007fc23 100644
--- a/Samples/common/SampleBase.cs
+++ b/Samples/common/SampleBase.cs
@@ -12,7 +12,7 @@ namespace Crow
public Version CrowVersion => Assembly.GetAssembly (typeof (Widget)).GetName ().Version;
#region Test values for Binding
- public List<Crow.Command> Commands;
+ public List<Command> Commands;
public int intValue = 500;
VerticalAlignment currentVAlign;