FRBDK/FRBDK Supporting Projects/EditorObjects/Undo/UndoManager.cs
/// <summary>
/// Shows a ListDisplayWindow with the undos in the UndoManager.  This is provided as a convenience function so it 
/// can be used in MenuStrips.
/// </summary>
/// <param name="callingWindow">This property will not be used - it's here to match the GuiMessage delegate.</param>
Shows a ListDisplayWindow with the undos in the UndoManager.  This is provided as a convenience function so it
can be used in MenuStrips.
Shows a ListDisplayWindow with the undos in the UndoManager . This is provided as a convenience function so it can be used in MenuStrips .
public static void ShowListDisplayWindow(Window callingWindow)
        {
            #region If the ListDisplayWindow hasn't been created yet, create it
            if (mInstructionListDisplayWindow == null)
            {
                mInstructionListDisplayWindow = new ListDisplayWindow(GuiManager.Cursor);
                mInstructionListDisplayWindow.ListShowing = mInstructions;
                mInstructionListDisplayWindow.HasMoveBar = true;
                mInstructionListDisplayWindow.HasCloseButton = true;
                mInstructionListDisplayWindow.Resizable = true;
                mInstructionListDisplayWindow.ScaleX = 9;
                mInstructionListDisplayWindow.X = SpriteManager.Camera.XEdge * 2 - mInstructionListDisplayWindow.ScaleX;
                mInstructionListDisplayWindow.Name = "Undos";
                GuiManager.AddWindow(mInstructionListDisplayWindow);
            }
            #endregion
            #region Show and bring the ListDisplayWindow to the top
            mInstructionListDisplayWindow.Visible = true;
            GuiManager.BringToFront(mInstructionListDisplayWindow);
            #endregion
        }
public static void ShowListDisplayWindow ( Window callingWindow ) { region  If the ListDisplayWindow hasn't been created yet, create it if ( mInstructionListDisplayWindow == null ) { mInstructionListDisplayWindow = new ListDisplayWindow ( GuiManager . Cursor ) ; mInstructionListDisplayWindow . ListShowing = mInstructions ; mInstructionListDisplayWindow . HasMoveBar = true ; mInstructionListDisplayWindow . HasCloseButton = true ; mInstructionListDisplayWindow . Resizable = true ; mInstructionListDisplayWindow . ScaleX = 9 ; mInstructionListDisplayWindow . X = SpriteManager . Camera . XEdge * 2 - mInstructionListDisplayWindow . ScaleX ; mInstructionListDisplayWindow . Name = " " ; GuiManager . AddWindow ( mInstructionListDisplayWindow ) ; } endregion region  Show and bring the ListDisplayWindow to the top mInstructionListDisplayWindow . Visible = true ; GuiManager . BringToFront ( mInstructionListDisplayWindow ) ; endregion }
Shows a ListDisplayWindow with the undos in the UndoManager.
Shows a ListDisplayWindow with the undos in the UndoManager .
callingWindow
Window
This property will not be used - it's here to match the GuiMessage delegate.
This property will not be used - it ' s here to match the GuiMessage delegate .