Each menu command can have a project method or a standard action attached to it.
The following example is a one-line method called from a menu command.