private void OnUpdateItemStatus(object sender, MenuActionEventArgs e)
        {
            if (e.Selection.SelectionCount == 1 && e.Selection.PrimarySelection.IsItemOfType(Types.Wizard.TypeId))
            {
                addPageMenuAction.Visible      = true;
                insertPageMenuAction.Visible   = true;
                removePageMenuAction.Visible   = true;
                nextPageMenuAction.Visible     = true;
                previousPageMenuAction.Visible = true;

                ModelItem wizard = GetWizard(e.Selection.PrimarySelection);

                addPageMenuAction.Enabled    = true;
                insertPageMenuAction.Enabled = true;
                removePageMenuAction.Enabled = DesignerOperations.CanRemovePage(wizard);

                firstPageMenuAction.Enabled    = DesignerOperations.CanGoToFirstPage(wizard);
                previousPageMenuAction.Enabled = DesignerOperations.CanGoToPreviousPage(wizard);
                nextPageMenuAction.Enabled     = DesignerOperations.CanGoToNextPage(wizard);
                lastPageMenuAction.Enabled     = DesignerOperations.CanGoToLastPage(wizard);
            }
            else
            {
                addPageMenuAction.Visible      = false;
                insertPageMenuAction.Visible   = false;
                removePageMenuAction.Visible   = false;
                nextPageMenuAction.Visible     = false;
                previousPageMenuAction.Visible = false;
            }
        }
 private bool CanGoToNextPage(Object param)
 {
     if (wizard != null)
     {
         return(DesignerOperations.CanGoToNextPage(wizard));
     }
     return(false);
 }