|
@@ -24,6 +24,8 @@ namespace fis
|
|
|
private string _host;
|
|
|
private Dictionary<string, string> _parameters;
|
|
|
|
|
|
+ public bool ForceClose { get; set; } = false;
|
|
|
+
|
|
|
public SlaveWindow()
|
|
|
{
|
|
|
ExtendClientAreaToDecorationsHint = true;
|
|
@@ -111,11 +113,14 @@ namespace fis
|
|
|
|
|
|
private void SlaveWindow_Closing(object? sender, System.ComponentModel.CancelEventArgs e)
|
|
|
{
|
|
|
- e.Cancel = true;
|
|
|
- WindowState = WindowState.Minimized;
|
|
|
- ShowInTaskbar = false;
|
|
|
- ShowActivated = false;
|
|
|
- Hide();
|
|
|
+ if (!ForceClose)
|
|
|
+ {
|
|
|
+ e.Cancel = true;
|
|
|
+ WindowState = WindowState.Minimized;
|
|
|
+ ShowInTaskbar = false;
|
|
|
+ ShowActivated = false;
|
|
|
+ Hide();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void InitializeComponent()
|