private void AddItem(Point p, int pos) { TaskCard icon1 = new TaskCard() { Width = p.X, Height = p.Y }; Tasks.AddIcon(icon1, pos); }