public MainWindow(bool downloadImmediately)
 {
     IOFunc.CreateFolderTree(Storage.Folder);
     this.MainProgramElements = new MainProgramElements(this as MainWindow);
     this.DataContext         = MainProgramElements;
     InitializeComponent();
     ValidateAvailabilityOfSpecialItems(this.videoQueue.Items);
     if (downloadImmediately)
     {
         this.DownloadButton_Click(this.startDownloadingButton, new RoutedEventArgs());
     }
 }