Exemplo n.º 1
0
        private void ListBoxWindowLoaded(object sender, RoutedEventArgs e)
        {
            PlayerServiceManager.AddFacility(this);

            this.Activate();
            this.Topmost = true;
            this.Topmost = false;
            this.Focus();

            this.ListBox.SelectionChanged += this.ListBoxSelectionChanged;
        }
Exemplo n.º 2
0
        private void MainWindowLoaded(object sender, RoutedEventArgs e)
        {
            this._cursor = this.Cursor;

            if (App.Args.Count == 1)
            {
                this.OpenFile(App.Args[0]);
            }

            this.SizeChanged += this.MainWindowSizeChanged;

            this.VolumeValueBlock.DataContext = this;

            PlayerServiceManager.AddFacility(this);

            this.Activate();
            this.Topmost = true;
            this.Topmost = false;

            this.SelectMovie();
        }