private void cleardsControls() { int aCount = 0; while (dsControls.Count > 0) { libControls.dsControl aControl = dsControls[aCount]; dsControls.Remove(aControl); aControl = null; } }
private void deleteControls() { foreach (libControls.dsControl aControl in dsControls) { if (aControl.Selected) { libControls.dsControl fControl = aControl; dsControls.Remove(fControl); fControl = null; pbxCanvas.Invalidate(); break; } } }