示例#1
0
        private void CloseBuffer(IBuffer buffer)
        {
            bufferManager.CloseBuffer(buffer);
            var next = bufferManager.EnumerateBuffers().FirstOrDefault();

            if (next == null)
            {
                next = bufferManager.CreateBuffer();
            }

            OpenBuffer(next);
        }