/// <summary> /// Constructs a new GridDisplay instance /// </summary> /// <param name="aLevel">The Level instance to which a /// reference is stored, and which is used to retrieve /// row and palette data.</param> public GridDisplay(Level aLevel) { mLevel = aLevel; DoubleBuffered = true; InitializeComponent(); AutoScrollMinSize = ContentSize; mLevel.Grid.GridChanged += new Grid.GridChangedEventHandler(GridChangedHandler); AutoScrollMinSize = ContentSize; mWindow = new DisplayWindow(this); mOldHeight = this.Height; mWindow.Reset(); }