Bloom.Edit.ToolboxView.LoadPanelIntoToolbox C# (CSharp) Method

LoadPanelIntoToolbox() public static method

public static LoadPanelIntoToolbox ( HtmlDom domForToolbox, ToolboxTool tool, List checkedBoxes, string toolboxFolder ) : void
domForToolbox Bloom.Book.HtmlDom
tool ToolboxTool
checkedBoxes List
toolboxFolder string
return void
        public static void LoadPanelIntoToolbox(HtmlDom domForToolbox, ToolboxTool tool, List<string> checkedBoxes, string toolboxFolder)
        {
            // For all the toolbox tools, the tool name is used as the name of both the folder where the
            // assets for that tool are kept, and the name of the main htm file that represents the tool.
            var fileName = tool.ToolId + "ToolboxPanel.html";
            var path = BloomFileLocator.sTheMostRecentBloomFileLocator.LocateFile(fileName);
            Debug.Assert(!string.IsNullOrEmpty(path));
            AppendToolboxPanel(domForToolbox, path);
            checkedBoxes.Add(tool.ToolId + "Check");
        }