private void initializeVideoWindow() { if ((videoWindow == null) || (videoWindow.IsDisposed)) { videoWindow = new VideoWindow(); videoWindow.Closing += VideoWindowOnClosing; playlistEditorControl.Playlist.PlaylistItemEntered += Playlist_PlaylistItemEntered; // videoWindow.VlcPlayerControl.StateChanged += VlcPlayerControl1OnStateChanged; videoWindow.VlcPlayerControl.PositionChanged += VlcPlayerControlOnPositionChanged; videoWindow.VlcPlayerControl.EndReached += VlcPlayerControlOnEndReached; } }
private void initializeVideoWindow() { if ((videoWindow == null) || (videoWindow.IsDisposed)) { if (videoWindow != null) { videoWindow.Closing -= VideoWindowOnClosing; } videoWindow = new VideoWindow(); videoWindow.Closing += VideoWindowOnClosing; if (!videoWindow.VlcPlayerControl.IsInitialized) { videoWindow.VlcPlayerControl.Initialize(this); } // videoWindow.VlcPlayerControl.StateChanged += vlc_onStateChanged; videoWindow.VlcPlayerControl.PositionChanged += vlc_onPositionChanged; videoWindow.VlcPlayerControl.EndReached += vlc_onEndReached; // } }