From 6df32af090b1fc7f99ce5852523766dd012b9f19 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sun, 4 Mar 2018 14:46:02 +0100 Subject: docker wip --- src/ExtensionsMethods.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ExtensionsMethods.cs') diff --git a/src/ExtensionsMethods.cs b/src/ExtensionsMethods.cs index 6697be62..dfb90f0e 100644 --- a/src/ExtensionsMethods.cs +++ b/src/ExtensionsMethods.cs @@ -106,6 +106,9 @@ namespace Crow } #endregion + public static Orientation GetOrientation(this Alignment a){ + return (a==Alignment.Left) ||(a==Alignment.Right) ? Orientation.Horizontal : Orientation.Vertical; + } public static void Raise(this EventHandler handler, object sender, EventArgs e) { if(handler != null) -- cgit v1.3.1-4-g156e