/// <summary>
        /// Adds the file.
        /// </summary>
        /// <param name="path">The path.</param>
        public void AddFile(string path, Components.ScintillaEx editor)
        {
            if (workspace != null)
            {
                if (workspace.CanAddFile(path))
                {
                    var createdNode
                        = files.Nodes[0].Nodes.Add(new TreeNodeAdv(Path.GetFileName(path)));

                    workspace.AddFile(files.Nodes[0].Nodes[createdNode], editor.OpenedFile);

                    if (files.Nodes[0].Nodes.Count == 1)
                    {
                        files.ExpandAll();
                    }
                }
            }
        }