protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); switch (e.Button) { case MouseButtons.Left: LevelSettings settings = _editor?.Level?.Settings; if (settings != null && settings.ImportedGeometries.All(geo => geo.LoadException != null)) { ImportedGeometry geoToUpdate = settings.ImportedGeometries.FirstOrDefault(geo => geo.LoadException != null); if (geoToUpdate != null) { EditorActions.UpdateImportedGeometryFilePath(Parent, settings, geoToUpdate, true); } else { EditorActions.AddImportedGeometry(Parent); } } else if (CurrentObject != null) { DoDragDrop(CurrentObject, DragDropEffects.Copy); } break; } }