public static void Main() { myApplication = new MyClock(); NetworkInterface[] nis = NetworkInterface.GetAllNetworkInterfaces(); for (int i = 0; i < nis.Length; i++) { NetworkInterface networkInterface = nis[i]; if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet) { string m_macAddress = networkInterface.PhysicalAddress[0].ToString(); for (int j = 1; j < networkInterface.PhysicalAddress.Length; ++j) { m_macAddress += "-" + networkInterface.PhysicalAddress[j].ToString(); } string[] m_staticDnsAddresses = new string[] { "0.0.0.0", "0.0.0.0" }; for (int k = 0; k < networkInterface.DnsAddresses.Length; ++k) { m_staticDnsAddresses[k] = networkInterface.DnsAddresses[k]; } str = networkInterface.IPAddress; break; } } Microsoft.SPOT.Touch.Touch.Initialize(myApplication); Window mainWindow = myApplication.CreateWindow(); // Create the object that configures the GPIO pins to buttons. GPIOButtonInputProvider inputProvider = new GPIOButtonInputProvider(null); // Start the application myApplication.Run(mainWindow); }