private void RunExport1()
        {
            HTuple WindowID = hWindowControlWPF1.HalconID;

            HDevExp.RunCAM1(WindowID);

            this.Dispatcher.Invoke(new Action(() => {
                labelStatus.Content  = "Finished.";
                buttonCAM1.IsEnabled = true;
            }));
        }