コード例 #1
0
        /// <summary>
        /// Shows the preferences UI
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void Settings_Click(object sender, RoutedEventArgs e)
        {
            var preferenceWindow = new PreferenceWindow();

            preferenceWindow.ShowDialog();
        }
コード例 #2
0
 public void SetUp()
 {
     window = new PreferenceWindow();
 }
コード例 #3
0
        /// <summary>
        /// Shows the preferences window.
        /// </summary>
        public void ShowPreferences()
        {
            var enabled = timer.Enabled;

            if (enabled)
            {
                timer.Stop();
            }

            var preferenceWindow = new PreferenceWindow();

            preferenceWindow.ShowDialog();

            if (enabled)
            {
                timer.Start();
            }

            // The preferences window has been shown
            autoShownPreferences = true;
        }