public void ClearControls() { // clear pedigree this.SuspendLayout(); foreach (PedigreeCreature pc in pcs) pc.Dispose(); lines.Clear(); lines.Add(new List<int[]>()); lines.Add(new List<int[]>()); pictureBox.Image = null; this.ResumeLayout(); }