private void ClientRole_Click(object sender, RoutedEventArgs e) { Diag.DebugPrint("Client role selected"); // In order to simplify the sample and focus on the core controlchanneltrigger // related concepts, once a role is selected, the app has // to be restarted to change the role. ServerRoleButton.IsChecked = false; ServerRoleButton.IsEnabled = false; ServerSettings.Visibility = Windows.UI.Xaml.Visibility.Collapsed; ClientRoleButton.IsEnabled = false; appRole = appRoles.clientRole; ClientInit(); }
private void ServerRole_Click(object sender, RoutedEventArgs e) { Diag.DebugPrint("Server role selected."); // In order to simplify the sample and focus on the core controlchanneltrigger // related concepts, once a role is selected, the app has // to be restarted to change the role. ClientRoleButton.IsChecked = false; ClientRoleButton.IsEnabled = false; ClientSettings.Visibility = Windows.UI.Xaml.Visibility.Collapsed; ConnectButton.Visibility = Visibility.Collapsed; ServerRoleButton.IsEnabled = false; ServerSettings.Visibility = Windows.UI.Xaml.Visibility.Visible; appRole = appRoles.serverRole; ServerInit(); }