Exemplo n.º 1
0
        static DataHandler()
        {
            Timer          = new Timer(TimeSpan.FromMinutes(30).TotalMilliseconds);
            Timer.Elapsed += Timer_Elapsed;

            if (Program.LoadExcel)
            {
                ExcelMain.LoadExcelData();
            }

            Task.Run(LoadData).ContinueWith(_ => NewData?.Invoke(default, EventArgs.Empty)).ContinueWith(_ => Timer_Elapsed(null, null));