public override void Execute(object sender, HandledEventArgs e)
        {
            buffers.PreviousList();
            var output = OutputManager.Instance;

            output.OutputBufferListState(buffers, NavigationDirection.Left);
        }
Ejemplo n.º 2
0
        public override void Execute(object sender, HandledEventArgs e)
        {
            var currentBuffer = buffers.CurrentList;

            if (!currentBuffer.IsDismissable)
            {
                _output.OutputMessage(String.Format("{0} {1}", StringStore.CannotDismissBuffer, currentBuffer.Name));
            }
            else
            {
                buffers.PreviousList();
                buffers.Remove(currentBuffer);
                _output.OutputBufferListState(buffers, NavigationDirection.Left);
            }
            // if it's a buffer with a search or other unmanaged resources, dispose it
            if (currentBuffer is IDisposable)
            {
                ((IDisposable)currentBuffer).Dispose();
            }
        }