private void BtnExit_Click(object sender, RoutedEventArgs e)
 {
     Hide();
     AppExitRequested?.Invoke(this, e);
 }
 private void MenuItem_Click(object sender, RoutedEventArgs e)
 {
     AppExitRequested?.Invoke(this, EventArgs.Empty);
 }