public static GetDirectConnectionName ( ) : string | ||
Результат | string |
public void SetupDirectConnection() { var ethernetProfile = NetworkPresenter.GetDirectConnectionName(); if (ethernetProfile == null) { NoneFoundText.Visibility = Visibility.Visible; DirectConnectionStackPanel.Visibility = Visibility.Collapsed; } else { NoneFoundText.Visibility = Visibility.Collapsed; DirectConnectionStackPanel.Visibility = Visibility.Visible; } }
private void SetupEthernet() { var ethernetProfile = NetworkPresenter.GetDirectConnectionName(); if (ethernetProfile.Equals("None found")) { NoneFoundText.Visibility = Visibility.Visible; DirectConnectionStackPanel.Visibility = Visibility.Collapsed; } else { NoneFoundText.Visibility = Visibility.Collapsed; DirectConnectionStackPanel.Visibility = Visibility.Visible; } }