using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace IOM_cs { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { #region 检测当前程序是否重复运行 System.Diagnostics.Process[] myprocess = System.Diagnostics.Process.GetProcessesByName("IOM_ZC"); if (myprocess.Length > 1) { MessageBox.Show("虹膜注册程序正在运行!"); return; } #endregion try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new FormLogin()); //Application.Run(new FormMain()); } catch { } } } }