コード例 #1
0
 /// <summary>
 /// Handles the Click event of the CreditsButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void CreditsButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         CreditsWindow childWindow = new CreditsWindow();
         this.Close();
         childWindow.ShowDialog();
     }
     catch (Exception error)
     {
         errorLogViewModel.LogError(error);
     }
 }
コード例 #2
0
        private void SplashLogo_MouseDown(object sender, MouseButtonEventArgs e)
        {
            _splashCounter--;
            if (_splashCounter > 0)
            {
                return;
            }

            _splashCounter = 10;
            var credits = new CreditsWindow()
            {
                Owner = this, ShowInTaskbar = false, WindowStartupLocation = WindowStartupLocation.CenterOwner
            };

            credits.ShowDialog();
        }
コード例 #3
0
        private void CreditsClicked(object sender, RoutedEventArgs e)
        {
            CreditsWindow creditWindow = new CreditsWindow();

            creditWindow.ShowDialog();
        }