using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace PaintingPC { static class Program { public static string IP; public static string PicturePath; /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string aa = ConfigurationManager.AppSettings["Position"]; if (aa.Contains("一检")) { Application.Run(new FrmFirstCheck()); } else if (aa.Contains("二检") && aa.Contains("点修补")) { Application.Run(new FrmSecondCheckSpec()); } else if (aa.Contains("二检") && !aa.Contains("点修补")) { Application.Run(new FrmSecondCheck()); } } } }