private void Hstry_QuitMsgChanged(object sender, PropertyChangedEventArgs e) { if (hstry.QuitMsg == true) { WndContainer.Children.Remove(hstry); ActivationBlurEffect(false); WndBody.IsEnabled = true; LastFocus.Focus(); } }
private void ExitWnd_QuitMsgChanged(object sender, PropertyChangedEventArgs e) { if (exitWnd.QuitMsg) { WndContainer.Children.Remove(exitWnd); this.Close(); } else { WndContainer.Children.Remove(exitWnd); ActivationBlurEffect(false); WndBody.IsEnabled = true; LastFocus.Focus(); } }