private IEditableView GetFocusedView() { IEditableView result; if (propertyBar.HasEditFocus()) { result = propertyBar; } else if (currentLibraryView.HasEditFocus()) { result = currentLibraryView; } else { result = currentStage; } return(result); }