Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            m_state = PlaybackState.Closed;
            m_pPlayer = new DShowPlayer(panVideoWin, Handle, WM_GRAPH_EVENT);
            m_bDrag = false;
        }
Beispiel #2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (m_pPlayer != null)
     {
         m_pPlayer.Dispose();
         m_pPlayer = null;
     }
 }
Beispiel #3
0
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (m_pPlayer != null)
     {
         m_pPlayer.Dispose();
         m_pPlayer = null;
     }
     Application.Exit();
 }