注塑喷涂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

87 lines
3.0 KiB

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PunchAndWeld
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
///
public static bool IsPass = false;
[STAThread]
static void Main()
{
bool isRuned;
System.Threading.Mutex mutex = new System.Threading.Mutex(true, "OnlyRunOneInstance", out isRuned);
if (isRuned)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
string aa = ConfigurationManager.AppSettings["ProScreenMode"];
switch (aa)
{
case "1":
Application.Run(new FrmProScreen());
break;
case "2":
Application.Run(new FrmProScreenBumper());//PLC
break;
case "3":
Application.Run(new FrmProScreenBumperS());//PLC
break;
case "4":
Application.Run(new FrmHybridS());//ZP77工位连PLC
break;
case "5":
Application.Run(new FrmProScreenS());
break;
case "6":
Application.Run(new FrmProScreen_WheelBrow());
break;
case "7":
Application.Run(new FrmInspection_WheelBrow());
break;
case "8":
Application.Run(new FrmLaser());//PLC
break;
case "9":
Application.Run(new FrmDoorSill());
break;
case "10":
Application.Run(new FrmPrintOrder());
break;
case "11":
Application.Run(new FrmPreNoPlan());
break;
case "12":
Application.Run(new FrmDoorSillNew());
break;
case "13":
Application.Run(new FrmDoorSill_214());
break;
case "14":
Application.Run(new FrmDoorSill_214_2());//PLC
break;
case "15": //214门槛冲孔 分高低配和左右侧.
Application.Run(new FrmDoorSill_214_3());//PLC
break;
}
mutex.ReleaseMutex();
}
else
{
MessageBox.Show("程序已启动!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}