private void AddComponentToCurrentTarget(IComponentContainer target, ComponentDescriptor component) { try { target.AddComponent(component); } catch (Exception e) { if (ShowMessageBoxOnError) { MessageBox.Show($"An Error Occured:\n{e.ToString()}"); } } }