public static void DeleteSelected() { ObjectModel selected = GetSelected(); if (selected != null) { selected.DeleteObject(); } }