bool IContentLoader.Load(ContentLoadContext context) { bool ok = true; //load all child content foreach (var item in childContent.Values) { ok &= item.Load(); } return(ok); }
/// <summary> /// Loads the content with its default loader /// </summary> public bool Load() { if (IsLoaded) { return(true); } ContentLoadContext loadContext = new ContentLoadContext(); loadContext.Content = this; IsLoaded = _loader.Load(loadContext); if (IsLoaded) { LoadSerial++; } return(IsLoaded); }
bool IContentLoader.Load(ContentLoadContext context) { return(load(context)); }