private void OKButton_Clicked(object sender, RoutedEventArgs e)
{
this.DialogResult = true;
this.RemoteAppName = addressBox.Text;
Array roleValues = Enum.GetValues(typeof(SystemRole));
this.RemoteAppRole = (SystemRole)roleValues.GetValue(roleComboBox.SelectedIndex);
}