static void NetworkChange_NetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e) { Debug.Print("Network available: " + e.IsAvailable.ToString()); if (e.IsAvailable) { Time_Service.Start(); } else { Time_Service.Stop(); } }
static void NetworkChange_NetworkAddressChanged(object sender, EventArgs e) { Debug.Print("Network address changed: " + ethernet_Modul.IPAddress); Time_Service.Start(); }