From 3dc87bb736ffd7687ad097cdeafd3c56ca9454c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sun, 13 Aug 2017 08:17:58 +0200 Subject: [PATCH] debug --- Templates/DirectoryView.template | 43 +++++++++++++++++--------------- Tests/Showcase.cs | 4 ++- src/Size.cs | 10 +++++++- 3 files changed, 35 insertions(+), 22 deletions(-) diff --git a/Templates/DirectoryView.template b/Templates/DirectoryView.template index 12c8915c..bf3a6f46 100755 --- a/Templates/DirectoryView.template +++ b/Templates/DirectoryView.template @@ -2,33 +2,36 @@ - - - + + + + + diff --git a/Tests/Showcase.cs b/Tests/Showcase.cs index 517f722d..ad57222f 100644 --- a/Tests/Showcase.cs +++ b/Tests/Showcase.cs @@ -67,7 +67,9 @@ namespace Tests { FileSystemInfo fi = e.NewValue as FileSystemInfo; if (fi == null) - return; + return; + if (fi is DirectoryInfo) + return; lock (this.ifaceControl [0].CrowInterface.UpdateMutex) { GraphicObject g = this.ifaceControl [0].CrowInterface.Load (fi.FullName); crowContainer.SetChild (g); diff --git a/src/Size.cs b/src/Size.cs index 47288b06..ccd1ab31 100644 --- a/src/Size.cs +++ b/src/Size.cs @@ -126,7 +126,15 @@ namespace Crow { return s.Width <= i && s.Height <= i ? true : false; } - public static bool operator <=(Size s1, Size s2) + public static bool operator >(Size s, int i) + { + return s.Width > i && s.Height > i ? true : false; + } + public static bool operator >=(Size s, int i) + { + return s.Width >= i && s.Height >= i ? true : false; + } + public static bool operator <=(Size s1, Size s2) { if (s1.Width <= s2.Width && s1.Height <= s2.Height) return true; -- 2.47.3