private int ShowViewChooserFromPropertyGrid(int currentView) { AGS.Types.View chosenView = ViewChooser.ShowViewChooser(null, currentView); if (chosenView == null) { return currentView; } return chosenView.ID; }