private void FileChange()
        {
            Dispatcher.Invoke(() =>
            {
                Wilfred.Source     = _imageLoader.Image;
                HeaderText.Content = _headerMessageLoader.LoadMessage();
                Message.Content    = _messageLoader.LoadMessage();

                _windowHider.ShowWindowForDisplayTime(() => { });
                _soundPlayer.PlaySound();
            });
        }
        public MainWindow(string simpleMessage)
        {
            InitializeComponent();

            var noDisplayTimeConfigured = !double.TryParse(ConfigurationManager.AppSettings["DisplayTime"], out var displayTime);

            if (noDisplayTimeConfigured)
            {
                displayTime = 6.0;
            }

            _soundPlayer = new SoundPlayer(ConfigurationManager.AppSettings["SoundFile"]);
            _windowHider = new WindowHider(this, displayTime);

            Message.Content = simpleMessage;

            _soundPlayer.PlaySound();
            _windowHider.ShowWindowForDisplayTime(Close);
        }