注塑喷涂
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.
 
 
 
 
 

82 lines
3.1 KiB

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PurchingMistakeNew
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[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);
//Application.Run(new FrmPrint());
string load = ConfigurationManager.AppSettings["loadForm"];
switch (load)
{
case "1": //门板生产
Application.Run(new Form1());
break;
case "2": //门板入库
Application.Run(new Form3());
break;
case "3": //x247轮眉生产
Application.Run(new Form4());
break;
case "4": //x247轮眉入库
Application.Run(new Form5());
break;
case "5": //x247小轮眉生产
Application.Run(new Form6());
break;
case "6": //扰流板生产
Application.Run(new Form7());
break;
case "7": //扰流板入库
Application.Run(new Form8());
break;
case "8": //x243轮眉生产
Application.Run(new Form9());
break;
case "9": //x247轮眉入库
Application.Run(new Form10());
break;
case "10": //x243轮眉生产
Application.Run(new FrmProduct_243());
break;
case "11": //x243轮眉入库
Application.Run(new FrmCheck243());
break;
case "12": //x247订单打印
Application.Run(new FrmPrint());
break;
case "13": //x243订单打印
Application.Run(new FrmPrint_243());
break;
case "14": //x247轮眉扫描给视觉
Application.Run(new FrmScan_247());
break;
default:
break;
}
//Application.Run(new FrmTest());
mutex.ReleaseMutex();
}
else
{
MessageBox.Show("程序已启动!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}