using System; using System.Windows.Forms; namespace Dongke.IBOSS.PRD.Client.AutoUpgrade { static class Program { internal static string Parameter { get; set; } internal static bool IsPublic { get; set; } /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { //Program.IsPublic = !(args != null && args.Length > 0); //Program.Parameter = (args != null && args.Length > 0) ? args[0] : null; if (args != null && args.Length > 0) { if (args[0] == "IBOSSPRDPublic.exe") { Program.IsPublic = true; } else { Program.IsPublic = false; } Program.Parameter = string.Join(" ", args); } else { Program.IsPublic = false; } //MessageBox.Show(Program.Parameter + Program.IsPublic); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new FrmAutoUpgradeInfomation()); } } }