|
@@ -13,7 +13,7 @@ namespace fis.Win.Dev.Managers
|
|
|
{
|
|
|
Dictionary<WindowType, SlaveWindow> windows = new Dictionary<WindowType, SlaveWindow>();
|
|
|
|
|
|
- public async Task ShowWindowByTypeAsync(WindowType windowType, string host, Dictionary<string, string> keyValuePairs)
|
|
|
+ public async Task ShowWindowByTypeAsync(WindowType windowType, string host, Dictionary<string, string> keyValuePairs,bool isShowWindow = true)
|
|
|
{
|
|
|
await Dispatcher.UIThread.InvokeAsync(() =>
|
|
|
{
|
|
@@ -37,6 +37,11 @@ namespace fis.Win.Dev.Managers
|
|
|
}
|
|
|
window.Closed += Window_Closed;
|
|
|
windows.Add(windowType, window);
|
|
|
+ if (!isShowWindow)
|
|
|
+ {
|
|
|
+ window.WindowState = Avalonia.Controls.WindowState.Minimized;
|
|
|
+ window.ShowInTaskbar = false;
|
|
|
+ }
|
|
|
window.Show();
|
|
|
}
|
|
|
|