static void Main(string[] args) { if (Thread.CurrentThread.Name is null) { Thread.CurrentThread.Name = nameof(Main); } Process.GetCurrentProcess().PriorityBoostEnabled = true; Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High; Thread.CurrentThread.Priority = ThreadPriority.Highest; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ValueForClient.TimerStart(TimeSpan.FromMinutes(2)); // Таймер для GC.Collect(); ProgressOfUpdateAtStructAttribute.WriteInConsole_Default = false; ConsoleWriteLine.WriteInConsole_Default = false; Application.Run(new OtherForm.Authorization()); }