private void Button_Connect_Click(object sender, RoutedEventArgs e)
 {
     windowConnecting = new Window_Connecting();
     windowConnecting.DataContext = this.Context;
     windowConnecting.Owner = this;
     windowConnecting.ShowDialog();
 }
 void CloseWindowConnecting()
 {
     if (windowConnecting != null)
     {
         try
         {
             windowConnecting.Close();
             windowConnecting = null;
         }
         catch { }
     }
 }