/// <summary>
 /// Called when the OK button is clicked
 /// </summary>
 /// <param name="sender">autogenerated</param>
 /// <param name="e">autogenerated</param>
 private void OkButtonClick(object sender, RoutedEventArgs e)
 {
     TypedPassword = PwTextbox.Password;
     DialogResult  = true;
     _ui.MarkAsConnected(_ip);
     Close();
 }