public override void ImportText(string propertySheetText, string originalFilename) { if (Root._imports.Any(each => each.FullPath.Equals(originalFilename, StringComparison.CurrentCulture))) { return; } var importedSheet = new RootPropertySheet(this); importedSheet.ParseText(propertySheetText, originalFilename); _imports.Add(importedSheet); AddChildRoutes(importedSheet.Routes); _view.InitializeAtRootLevel(importedSheet); }
public ImportedSheet(RootPropertySheet root) { _root = root; }
internal PropertySheet(RootPropertySheet root) : base(root) { // used by imported sheets to bind themselves to the right root object. }
public override void ImportText(string propertySheetText, string originalFilename) { if(Root._imports.Any(each => each.FullPath.Equals(originalFilename, StringComparison.CurrentCulture))) { return; } var importedSheet = new RootPropertySheet(this); importedSheet.ParseText(propertySheetText, originalFilename); _imports.Add(importedSheet); AddChildRoutes(importedSheet.Routes); _view.InitializeAtRootLevel(importedSheet); }
protected ObjectNode(RootPropertySheet root) : this() { // this is for imported sheets that share the same root. Parent = root; Selector = Selector.Empty; }