﻿using System.ComponentModel.Composition;

namespace Flood.Editor.Controls
{
    class ToolClose : EditorTool, BarTool
    {
        [Import]
        DocumentManager docManager;

        public void OnSelect()
        {
            if (docManager.Current != null)
                docManager.Close(docManager.Current.Id);
        }

        public string Text
        {
            get { return "Close"; }
        }

        public string Image
        {
            get { return "close.png"; }
        }
    }
}

﻿using System.ComponentModel.Composition;

namespace Flood.Editor.Controls
{
    class ToolClose : EditorTool, BarTool
    {
        [Import]
        DocumentManager docManager;

        public void OnSelect()
        {
            //if (docManager.Current != null)
            //    docManager.Close(docManager.Current.Id);
        }

        public string Text
        {
            get { return "Close"; }
        }

        public string Image
        {
            get { return "close.png"; }
        }
    }
}

Disable document selection by id.
Disable document selection by id.
