예제 #1
0
        private void ResetDefaultsButton_Click(object sender, RoutedEventArgs e)
        {
            App.CreateDefaultAppSettings();
            AssignSettingsValues();

            if (App.Settings.Virtualization != _oldVirtValue)
            {
                AppRestartRequired.Invoke();
            }
        }
예제 #2
0
        private void VirtualizationToggle_Click(object sender, RoutedEventArgs e)
        {
            bool ToggleValue = VirtualizationToggle.IsChecked.HasValue && VirtualizationToggle.IsChecked.Value;

            if (ToggleValue == _oldVirtValue)
            {
                return;
            }

            App.Settings.Virtualization = ToggleValue;
            AppRestartRequired.Invoke();
        }