public MainWindow() { InitializeComponent(); CameraOperator = new CameraOperate(); Text_MessageTwo.Text = " "; // Set the name of main thread th = Thread.CurrentThread; th.Name = "Thread_Main"; }