private void showDebugWindow()
 {
     if (debugWnd == null)
      {
     debugWnd = new DebugWindow();
     debugWnd.Show();
      }
 }
 public DebugWindow()
 {
     instance = this;
     InitializeComponent();
 }