コード例 #1
0
        private void SetupEthernet()
        {
            var ethernetProfile = NetworkPresenter.GetDirectConnectionName();

            if (ethernetProfile == null)
            {
                NoneFoundVisibility        = Visibility.Visible;
                DirectConnectionVisibility = Visibility.Collapsed;
            }
            else
            {
                NoneFoundVisibility        = Visibility.Collapsed;
                DirectConnectionVisibility = Visibility.Visible;
            }
        }
コード例 #2
0
        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;
            }
        }