public static void Init() { TaskList.Clear(); B_Content_ScheTask scheBll = new B_Content_ScheTask(); List <M_Content_ScheTask> list = scheBll.SelTaskList(); for (int i = 0; i < list.Count; i++) { M_Content_ScheTask scheMod = list[i]; var task = CreateTask(scheMod); if (task != null) { TaskList.Add(task); } } }