public MainForm()
 {
     InitializeComponent();
     lock (m_csSceneLock)
     {
         m_Scene = new Scene(this.pbView);
     }
 }
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (m_Playback != null)
     {
         m_Playback.Dispose();
         m_Playback = null;
     }
     if (m_Scene != null)
     {
         m_Scene.Dispose();
         m_Scene = null;
     }
 }