h-you / branches / src / UpDateCopy / Program.cs @ 70
履歴 | 表示 | アノテート | ダウンロード (775 Bytes)
| 1 |
using System; |
|---|---|
| 2 |
using System.Collections.Generic; |
| 3 |
using System.Diagnostics; |
| 4 |
using System.IO; |
| 5 |
using System.Linq; |
| 6 |
using System.Threading.Tasks; |
| 7 |
using System.Windows.Forms; |
| 8 |
|
| 9 |
namespace UpDateCopy |
| 10 |
{
|
| 11 |
static class Program |
| 12 |
{
|
| 13 |
/// <summary> |
| 14 |
/// アプリケーションのメイン エントリ ポイントです。 |
| 15 |
/// </summary> |
| 16 |
[STAThread] |
| 17 |
static void Main() |
| 18 |
{
|
| 19 |
//すでに起動していると判断する |
| 20 |
if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1) return; |
| 21 |
|
| 22 |
Application.EnableVisualStyles(); |
| 23 |
Application.SetCompatibleTextRenderingDefault(false); |
| 24 |
Application.Run(new FrmCopy()); |
| 25 |
} |
| 26 |
} |
| 27 |
} |