//--------------------------------------------------------------------------------------------------

        public void Delete()
        {
            if (CurrentTool != null)
            {
                CurrentTool.Delete();
            }
            else
            {
                InteractiveContext.Current.DocumentController.Delete(Selection.SelectedEntities);
            }
        }