private void buttonPlayVideo_Click(object sender, EventArgs e) { if (m_VideoPlayer == null) { m_VideoPlayer = new VideoPlayerMainForm(m_AppData, UserClosedThePlayer); } if (m_VideoPlayer.IsDisposed) { m_VideoPlayer = new VideoPlayerMainForm(m_AppData, UserClosedThePlayer); } if (!m_VideoPlayer.Visible) m_VideoPlayer.Show(); PushVideoRangeToVideoPlayer(); }
void UserClosedThePlayer() { m_VideoPlayer = null; }