public class NewBookAction: SimpleAction

      {

          public override void Execute( IActionContext context )

          {

              IResource res = Core.ResourceStore.NewResourceTransient( ResourceTypes.Book );

              Core.UIManager.OpenResourceEditWindow( new BookEditPane(), res, true );

          }

      }