34 lines
921 B
C#
34 lines
921 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace GetMembership
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
bool createNew;
|
|
using (System.Threading.Mutex m = new System.Threading.Mutex(true, Application.ProductName, out createNew))
|
|
{
|
|
if (createNew)
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new LodData());
|
|
}
|
|
else
|
|
{
|
|
//MessageBox.Show("Only one instance of this application is allowed!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|