Exemplo n.º 1
0
 private void openSingleGameHubWindowButton_Click(object sender, RoutedEventArgs e)
 {
     if (SingleGameHub != null)
     {
         SingleGameHub.Focus();
     }
     else
     {
         SingleGameHub         = new SingleGameHubWindow();
         SingleGameHub.Closed += SingleGameHub_Closed;
         SingleGameHub.Owner   = this;
         SingleGameHub.Show();
     }
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("OpenSingleGameHubWindowButton_Content"));
 }
Exemplo n.º 2
0
 private void SingleGameHub_Closed(object sender, EventArgs e)
 {
     Focus();
     SingleGameHub = null;
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("OpenSingleGameHubWindowButton_Content"));
 }