WPF/MainWindow.xaml.cs
/// <summary>
/// Show fastest times dialog using data from settings
/// </summary>
Show fastest times dialog using data from settings
Show fastest times dialog using data from settings
private void ShowFastestTimesDialog()
        {
            DlgTimes dlg = new DlgTimes
            {
                Owner = this,
                lblName0 = { Content = BestNames[GameDifficulty.Beginner] },
                lblName1 = { Content = BestNames[GameDifficulty.Advanced] },
                lblName2 = { Content = BestNames[GameDifficulty.Expert] },
                lblTime0 = { Content = BestTimes[GameDifficulty.Beginner] },
                lblTime1 = { Content = BestTimes[GameDifficulty.Advanced] },
                lblTime2 = { Content = BestTimes[GameDifficulty.Expert] }
            };
            dlg.ShowDialog();
        }
private void ShowFastestTimesDialog ( ) { DlgTimes dlg = new DlgTimes { Owner = this , lblName0 = { Content = BestNames [ GameDifficulty . Beginner ] } , lblName1 = { Content = BestNames [ GameDifficulty . Advanced ] } , lblName2 = { Content = BestNames [ GameDifficulty . Expert ] } , lblTime0 = { Content = BestTimes [ GameDifficulty . Beginner ] } , lblTime1 = { Content = BestTimes [ GameDifficulty . Advanced ] } , lblTime2 = { Content = BestTimes [ GameDifficulty . Expert ] } } ; dlg . ShowDialog ( ) ; }
Show fastest times dialog using data from settings
Show fastest times dialog using data from settings