Exemplo n.º 1
0
 private void SettingsButton_Click(object sender, RoutedEventArgs e)
 {
     if (!areSettingsOpen)
     {
         areSettingsOpen        = !areSettingsOpen;
         MenuGrid.Visibility    = Visibility.Collapsed;
         ContentGrid.Visibility = Visibility.Collapsed;
         MiddleScreenPopupGrid.Children.Clear();
         MiddleScreenPopupGrid.Children.Add(settingsForm);
     }
     else
     {
         areSettingsOpen = !areSettingsOpen;
         settingsForm.CloseSettings();
     }
 }