33 أسطر
806 B
C#
33 أسطر
806 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using Pingerino.Infrastructure;
|
|
|
|
namespace Pingerino
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
// Initialize dependency injection container
|
|
ServiceContainer.Initialize();
|
|
|
|
try
|
|
{
|
|
Application.Run(new FormPinger());
|
|
}
|
|
finally
|
|
{
|
|
// Clean up services on application exit
|
|
ServiceContainer.Instance?.Dispose();
|
|
}
|
|
}
|
|
}
|
|
}
|