private void SetupEthernet() { var ethernetProfile = NetworkPresenter.GetDirectConnectionName(); if (ethernetProfile == null) { NoneFoundVisibility = Visibility.Visible; DirectConnectionVisibility = Visibility.Collapsed; } else { NoneFoundVisibility = Visibility.Collapsed; DirectConnectionVisibility = Visibility.Visible; } }
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; } }