private void AddNewFile(string path) { string name = System.IO.Path.GetFileName(path); if (_data.HasItem(name)) { return; } JadeData.Project.File data = new JadeData.Project.File(name, path); _data.AddItem(data); AddChildFile(new File(this, data)); _workspace.Modified = true; Expanded = true; OnPropertyChanged("Children"); }
public File(TreeNodeBase parent, JadeData.Project.File file) : base(file.Name, parent) { _data = file; }