private async void btnTest_Click(object sender, EventArgs e) { this.Enabled = false; await GeneralOps.RefreshDownloadTime(); this.Enabled = true; }
static void Main() { Timer.SetFirstTime(DateTime.Now); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Mex.AddMessage("Starting Application: " + Timer.GetTimestampPrecision(DateTime.Now), Mex.INFO); //List<MessageT> test = Mex.GetMessageOfType((int)Mex.INFO); //Mex.PrintMessageInForm(Mex.FormatMessageAtIndex()); ConfigFile.LoadConfig(); Mex.RemoveAll(); frmMain firstMain = new frmMain(); GeneralOps.Startup(firstMain); ConfigFile.ACTUAL_MAIN = firstMain; Logger.Initialize(@"F:\CODICE\Output"); Application.Run(firstMain); }