private static void Update(object e, EventArgs arg) { if (Source.thread_sleep) { System.Threading.Tasks.Task.Factory.StartNew(() => Weeb.Get_Currency_Update()); } }
static void Main() { var init = new Initialization(); init.Init(); Task.Factory.StartNew(() => Weeb.Get_Currency_Update()); System.Windows.Forms.Application.Run(); }
static private void Timing(object ebj, ElapsedEventArgs e) { if (DateTime.Now.Hour == Hour || Source.last_error) { if (Source.thread_sleep) { Weeb.Get_Currency_Update(); } } }