示例#1
0
        /// <summary>
        /// We have to dispose the WpfEyeXHost on exit. This makes sure
        /// that all resources are cleaned up and that the connection to
        /// the EyeX Engine is closed.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);
            string strCmdText;

            strCmdText = "/C echo Creating Heatmaps... & python ../../../../../../maketimelapse.py";
            System.Diagnostics.Process.Start("CMD.exe", strCmdText);
            _mainWindowModel.Dispose();
        }
 /// <summary>
 /// We have to dispose the WpfEyeXHost on exit. This makes sure
 /// that all resources are cleaned up and that the connection to
 /// the EyeX Engine is closed.
 /// </summary>
 /// <param name="e"></param>
 protected override void OnExit(ExitEventArgs e)
 {
     base.OnExit(e);
     _mainWindowModel.Dispose();
 }