AcManager.Controls.Dialogs.VideoViewer.VideoViewer_OnLoaded C# (CSharp) Method

VideoViewer_OnLoaded() private method

private VideoViewer_OnLoaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        private void VideoViewer_OnLoaded(object sender, RoutedEventArgs e) {
            if (_loaded) return;
            _loaded = true;

            try {
                Logging.Write("Initialization: " + PluginsManager.Instance.GetPluginDirectory("VLC"));
                Player.Initialize(PluginsManager.Instance.GetPluginDirectory("VLC"), @"--ignore-config", @"--no-video-title", @"--no-sub-autodetect-file");
                Logging.Write("Player.BeginStop()");
                Player.BeginStop(Stopped);
            } catch (Exception ex) {
                NonfatalError.NotifyBackground(ControlsStrings.VideoViewer_CannotPlay, ControlsStrings.VideoViewer_CannotPlay_Commentary, ex);
                Close();
            }
        }