private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            AppPaths.ConfigureFFmpegPaths(this);

            GridInfo.Visibility      = Visibility.Hidden;
            DownloadsView.Visibility = Visibility.Hidden;
            DownloadUrl.Focus();
            DownloadsView.ItemsSource = Manager.DownloadsList;

            List <ListItem <int> > DownloadQualityList = new List <ListItem <int> >();

            DownloadQualityList.Add(new ListItem <int>("Max", 0));
            DownloadQualityList.Add(new ListItem <int>("1080p", 1080));
            DownloadQualityList.Add(new ListItem <int>("720p", 720));
            DownloadQualityList.Add(new ListItem <int>("480p", 480));
            DownloadQualityList.Add(new ListItem <int>("360p", 360));
            DownloadQualityList.Add(new ListItem <int>("240p", 240));
            MaxDownloadQualityCombo.ItemsSource   = DownloadQualityList;
            MaxDownloadQualityCombo.SelectedIndex = 0;

            SplashWindow F = SplashWindow.Instance(this, Properties.Resources.AppIcon);

            F.CanClose();
            F.ShowDialog();
        }
예제 #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            SplashWindow F = SplashWindow.Instance(this, Properties.Resources.AppIcon);

            F.CanClose();
            F.ShowDialog();
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            PlaylistsList.SelectedIndex = 0;
            PlaylistsList.Focus();
            ((ListBoxItem)PlaylistsList.ItemContainerGenerator.ContainerFromIndex(0)).Focus();

            SplashWindow F = SplashWindow.Instance(this, Properties.Resources.AppIcon);

            F.CanClose();
            F.ShowDialog();

            var a = MediaInfo.GetVersion();
        }
예제 #4
0
        private async void Main_Loaded(object sender, EventArgs e)
        {
            if (NgMain != null)
            {
                Downloads       = new ViewDownloadsWindow();
                Downloads.Owner = Main;
                Downloads.DownloadsView.ItemsSource = Business.DownloadManager.DownloadsList;
            }

            SplashWindow InitWin = SplashWindow.Instance(Main, SplashImage);

            SplashImage = null;
            // InitWin.Owner = Main;

            CancellationToken token = new CancellationToken();
            Task InitWinTask        = Task.Factory.StartNew(
                () => InitWin.ShowDialog(),
                token,
                TaskCreationOptions.None,
                TaskScheduler.FromCurrentSynchronizationContext());

            await TestDatabaseConnectionAsync();

            if (Settings.SavedFile == null)
            {
                AboutWindow.Instance();
                SettingsWindow.Instance();
            }

            if (NgMain != null)
            {
                await NgMain.InitializationCompleted();
            }

            InitWin.CanClose();
            await InitWinTask;
        }