// private static string uList = ""; static UpdateManager() { if(!Program.properties.UpdateNotice) return; var task = new Task() { Method = CheckForUpdates, Trigger = 30 * 60 //30 minutes }; Tasks.Schedule (task); }
public static void Schedule(Task task, bool init = true) { if(init) task.Init (); lock(_tasks) _tasks.Push(task); }