Ejemplo n.º 1
0
 private void InitializeKeyDisplayerForm(KeyDisplayerSettings keyDisplayerSettings)
 {
     _keyDisplayerForm = new KeyDisplayerForm(keyDisplayerSettings);
     _keyDisplayerForm.LocationChanged += KeyDisplayerForm_LocationChanged;
     _keyDisplayerForm.SizeChanged     += KeyDisplayerForm_SizeChanged;
     _keyDisplayerForm.Closed          += KeyDisplayerForm_Closed;
 }
Ejemplo n.º 2
0
 private void DefaultSettingsButton_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("Are you sure you want to reset your settings?", "YAKD - Default settings", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
     {
         _settings = new KeyDisplayerSettings {
             MouseEnabled = _isMouseEnabled
         };
         _keyDisplayerForm.Close();
         _keyDisplayerForm = new KeyDisplayerForm(_settings);
         _keyDisplayerForm.Show();
         ShowHideWindowButton.Content = "Hide (Alt + F4)";
         InitializeMainWindow(_settings);
     }
 }