7 |
|
using System.Security; // Security Exception |
8 |
|
using System.Windows.Forms; // Message Box |
9 |
|
using System.Text.RegularExpressions; // For validate MAC address |
10 |
< |
|
10 |
> |
using log4net; |
11 |
|
namespace AnywhereTS |
12 |
|
{ |
13 |
|
public static class AtsDhcp // DHCP Support |
100 |
|
srvController.Start(); |
101 |
|
srvController.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(50)); |
102 |
|
} |
103 |
< |
catch |
103 |
> |
catch(Exception e) |
104 |
|
{ |
105 |
|
MessageBox.Show(@"Could not start the TFTPD service."); |
106 |
|
using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) |