public void OnSelected()
{
if (IsLinked)
EditorConsoleManager.ToolsPane.PanelFiles.CloseButton.IsEnabled = false;
else
EditorConsoleManager.ToolsPane.PanelFiles.CloseButton.IsEnabled = true;
if (selectedTool == null)
SelectedTool = tools.First().Value;
else
{
var oldTool = selectedTool;
SelectedTool = null;
SelectedTool = selectedTool;
}
}