From 007bfdb84aa18f1d3a9688d2ad70f840d2254d28 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 18 四月 2019 10:59:19 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/WindowBase/WindowCenter.cs | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/System/WindowBase/WindowCenter.cs b/System/WindowBase/WindowCenter.cs
index e5ece1b..8ad1711 100644
--- a/System/WindowBase/WindowCenter.cs
+++ b/System/WindowBase/WindowCenter.cs
@@ -77,6 +77,11 @@
}
}
+ public WindowType GetWindowType(string name)
+ {
+ return windows.GetWindowType(name);
+ }
+
public void OpenFromLocal<T>() where T : Window
{
var command = new OpenCommand()
@@ -768,6 +773,18 @@
windowKeys.Remove(key);
}
+ public WindowType GetWindowType(string key)
+ {
+ if (windows.ContainsKey(key))
+ {
+ return windows[key].windowInfo.windowType;
+ }
+ else
+ {
+ return WindowType.Flag;
+ }
+ }
+
}
}
--
Gitblit v1.8.0