public FrameManager(int width, int height) : this() { this._width = width; this._height = height; Frame defaultFrame = new Frame(0, this._height, 0, this._width); this.Frames.AddLast(defaultFrame); this.CurrentFrameNode = this.Frames.Last; }
public void SplitCurrentFrameVertical() { if (null == this.CurrentFrameNode) { return; } int currentWidth = this.CurrentFrame.Width; int currentHeight = this.CurrentFrame.Height; Frame newFrame = new Frame( this.CurrentFrame.Top, this.CurrentFrame.Bottom, this.CurrentFrame.Left + (currentWidth / 2), this.CurrentFrame.Right); this.CurrentFrame.Resize( this.CurrentFrame.Top, this.CurrentFrame.Bottom, this.CurrentFrame.Left, this.CurrentFrame.Right - (currentWidth / 2)); }