public Main() { // Run in the background Visibility = Visibility.Hidden; ShowInTaskbar = false; SetupTaskTrayIcon(); // Load the current config _config = new PlainTextConfig(true); _eventListener = new EventListener(_config); }
public OptionsWindow(EventListener eventListener, PlainTextConfig config) { InitializeComponent(); ShowInTaskbar = false; _eventListener = eventListener; _config = config; if (_config.RunAtStatup) { RunAtStartupCheckbox.IsChecked = true; } if (_config.PlaySound) { PlaySoundCheckbox.IsChecked = true; } }