public bool Show() { IsClosed = false; _Form = new TExtention06aView(); _Form.DataContext = this; _Form.Closing += _Form_Closing; return(_Form.ShowDialog() ?? false); }
public void Close() { try { _Form.DialogResult = true; if (!IsClosed) { _Form?.Close(); } _Form = null; } catch { } }