Exemple #1
0
        private void ExternalDisplayButton_OnClick(object sender, RoutedEventArgs e)
        {
            ButtonExtensions.SetActive(GamesListButton, false);
            ButtonExtensions.SetActive(PreviewButton, false);
            ButtonExtensions.SetActive(ExternalDisplayButton, true);

            GamesTab.Visibility           = Visibility.Collapsed;
            PreviewTab.Visibility         = Visibility.Collapsed;
            ExternalDisplayTab.Visibility = Visibility.Visible;
        }
Exemple #2
0
 private void WhiteoutButton_OnClick(object sender, RoutedEventArgs e)
 {
     if (ButtonExtensions.GetActive(WhiteoutButton) == false)
     {
         GoalWindow?.Whiteout(true);
         ButtonExtensions.SetActive(WhiteoutButton, true);
         ButtonExtensions.SetActive(BlackoutButton, false);
     }
     else
     {
         GoalWindow?.Whiteout(false);
         ButtonExtensions.SetActive(BlackoutButton, false);
         ButtonExtensions.SetActive(WhiteoutButton, false);
     }
     if (GoalWindow == null)
     {
         ButtonExtensions.SetActive(BlackoutButton, false);
         ButtonExtensions.SetActive(WhiteoutButton, false);
     }
 }