112
/*Модуль ре HostEventArgs.cs*/
using ре System;
using ре System.Net.NetworkInformation;
namespace ре NetMon
{
ре public class ре HostEventArgs : ре EventArgs
ре {
ре public string ре HostIpAddress { ре get; private ре set; }
ре public ECheckMethod ре Method { ре get; set; ре }
ре public string ре Result { ре get; set; ре }
ре public DateTime ре CheckTime { ре get; set; ре }
ре
ре public HostEventArgs(string ре hostIpAddress)
ре {
ре HostIpAddress = ре hostIpAddress;
ре CheckTime = ре DateTime.Now;
ре }
ре }
}
/*Модуль ре Program.cs*/
using ре System;
using ре System.Collections.Generic;
using ре System.Linq;
using ре System.Threading.Tasks;
using ре System.Windows.Forms;
namespace ре NetMon
{
ре static ре class Program
ре {
ре /// <summary>
ре /// Главная ре точка входа ре для приложения.
ре /// ре </summary>
ре [STAThread]
ре static void ре Main()
ре {
ре Application.EnableVisualStyles();
ре Application.SetCompatibleTextRenderingDefault(false);
ре Application.Run(new frmMain());
ре }
ре }
}