static void Main() { EnvironmentHelper.GetInstance().OSPlatfrom = OSPlatfromEnum.Windows; InitLog.SetLog(RunModeEnum.Debug); Log.Warning("audiodis.client is starting up"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new LoginForm()); }
/// <summary> /// 自动配置 /// </summary> public static void AutoConfig() { EnvironmentHelper.GetInstance().OSPlatfrom = OSPlatfromEnum.Windows; SetEncoding(); InitLog.SetLog(RunModeEnum.Debug); InitLicense(); if (EnvironmentHelper.GetInstance().OSPlatfrom == OSPlatfromEnum.Windows) { InitUI(); } IngoreCtrlC(); ErrorHandle(); }