public void AddObject() { if (CurrentItem == null) { return; } if (CurrentControl == null) { return; } CurrentItem.AddControl(CurrentControl); }