private void Button_Click_1(object sender, System.Windows.RoutedEventArgs e)
 {
     RequestedClose?.Invoke(this, new DialogClosedEventArgs(null));
 }
 private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     RequestedClose?.Invoke(this, new DialogClosedEventArgs(new InputResult(TBIP.Text, TBPort.Text)));
 }