Interaction logic for OptionsWindow.xaml
Inheritance: Window
示例#1
0
        /// <summary>
        /// Handler for OptionsMenuItem Click event
        /// </summary>
        private void OptionsMenuItemClick(object sender, RoutedEventArgs e)
        {
            var optionsWindow = new OptionsWindow(Options)
            {
                Owner = this,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
            };

            optionsWindow.Closed += OnOptionsUpdated;
            optionsWindow.Show();
        }
示例#2
0
        /// <summary>
        /// Handler for OptionsMenuItem Click event
        /// </summary>
        private void OptionsMenuItemClick(object sender, RoutedEventArgs e)
        {
            // Show the window and wait for the response
            var optionsWindow = new OptionsWindow();

            optionsWindow.UIOptions             = UIOptions;
            optionsWindow.Owner                 = this;
            optionsWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            optionsWindow.Refresh();
            optionsWindow.Show();
        }