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;
        }
示例#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();
        }
 private static void ListBoxWindowClosed(object sender, System.EventArgs e)
 {
     PlayerServiceManager.RemoveLastFacility();
 }