예제 #1
0
        public Main()
        {
            // Run in the background
            Visibility = Visibility.Hidden;
            ShowInTaskbar = false;
            SetupTaskTrayIcon();

            // Load the current config
            _config = new PlainTextConfig(true);
            _eventListener = new EventListener(_config);
        }
예제 #2
0
        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;
            }
        }