protected VisualizerControl()
 {
     t = new Thread(() =>
     {
         _app = new VisualizerApp();
         _cw  = _app.CalibratorWindow;
         _app.ShutdownMode = ShutdownMode.OnExplicitShutdown;
         _app.Run();
     });
     t.SetApartmentState(ApartmentState.STA);
     t.Start();
 }
 public VisualizerApp()
 {
     CalibratorWindow = new CalibratorWindow();
     CalibratorWindow.Show();
     CalibratorWindow.Hide();
 }