using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;
namespace Walter.K.Wang.Demo
{
static class Program
{
/// <summary>
/// 應用程式的主要進入點。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Mutex mutex = new Mutex(false, "Walter.K.Wang@gmail.com");
if (mutex.WaitOne(0, false))
{
Application.Run(Form1.GetForm());
}
else
{
MessageBox.Show("該程序已經運行", "友情提醒", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;
namespace Walter.K.Wang.Demo
{
static class Program
{
/// <summary>
/// 應用程式的主要進入點。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Mutex mutex = new Mutex(false, "Walter.K.Wang@gmail.com");
if (mutex.WaitOne(0, false))
{
Application.Run(Form1.GetForm());
}
else
{
MessageBox.Show("該程序已經運行", "友情提醒", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}