| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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;
- }
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [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());
- }
- }
- }
|