using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Diagnostics;
namespace GamExe { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string proc=Process.GetCurrentProcess().ProcessName; Process[] processes=Process.GetProcessesByName(proc); if (processes.Length > 1) { MessageBox.Show("GamExe jest już uruchomione!"); return; } else { Application.Run(new frmUpdate()); } } } }
Wyszukiwarka