/// <summary>
 /// the constractur of the  MainWindow
 /// </summary>
 public MainWindow()
 {
     InitializeComponent();
     cwindow     = null;
     lwindow     = null;
     swindow     = null;
     iwindow     = null;
     vm          = new MainViewModel();
     DataContext = vm;
 }
 /// <summary>
 ///Connect click open new window to connect
 /// </summary>
 private void Connect_Click(object sender, RoutedEventArgs e)
 {
     if (cwindow == null || !cwindow.IsVisible)
     {
         cwindow = new ConnectWindow();
         cwindow.Show();
     }
     else
     {
         cwindow.Focus();
     }
 }