public void LoadData(TaskFrame Frame) { List<TaskShellInfo> tsList = App.tsList; if (tsList == null) { return; } foreach (TaskShellInfo tsInfo in tsList) { TaskShell ts = new TaskShell(); foreach (TaskItemlInfo tiInfo in tsInfo.ItemList) { TaskItem ti = new TaskItem(); ti.Margin = new System.Windows.Thickness(2); ti.TaskContent = tiInfo.Content; ti.IsCompleted = tiInfo.IsCompleted; ts.AddTask(ti); } ts.TaskShellName = tsInfo.Name; Frame.AddShell(ts); } }
public void AddShell(TaskShell t) { t.DelSelf = DelTaskShell; Pool.Children.Add(t); }