public MainWindow() { InitializeComponent(); this.WindowStyle = WindowStyle.None; this.AllowsTransparency = false; PageSwitcher.pageSwitcher = this; PageSwitcher.Switch(new Page_Info()); NetworkChange.NetworkAvailabilityChanged += new NetworkAvailabilityChangedEventHandler(NetworkChange_NetworkAvailabilityChanged); } void NetworkChange_NetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e) { GlobalData.NetworkOnline = e.IsAvailable; if (GlobalData.NetworkOnline == true) lbl_LAN.Background = Brushes.PaleGreen; else lbl_LAN.Background = Brushes.Red; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)