public MainWindow()
        {
            InitializeComponent();

            var currentDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
            var libVlcDirectory  = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));

            Coordinator = new Coordinator(libVlcDirectory);

            Queue.DataContext            = Coordinator.Playlist;
            History.DataContext          = Coordinator.Playlist;
            PlaybackControls.DataContext = Coordinator.StreamPlayer;

            CurrentPlayingControl.DataContext = Coordinator.Playlist.CurrentPlaying;
            SettingsControl.DataContext       = this;
            SettingsControl.BackButton.Click += SettingsButton_Click;

            CenterControl.Navigate(CurrentPlayingControl);

            if (Autoplay)
            {
                Coordinator.StartAudioStream();
            }

            Window_SizeChanged(null, null);
        }
 private void SettingsButton_Click(object sender, RoutedEventArgs e)
 {
     if (CenterControl.Content.GetType() == typeof(SettingsControl))
     {
         CenterControl.Navigate(CurrentPlayingControl);
     }
     else
     {
         CenterControl.Navigate(SettingsControl);
     }
 }