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; }
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(); }