public static EbObject GetWebObjects(string Refid) { if (string.IsNullOrEmpty(Refid)) { return(null); } try { WebObjectsWraper wrpr = App.Settings.WebObjects?.Find(item => item.RefId == Refid); return(wrpr?.GetObject()); } catch (Exception ex) { EbLog.Error("external page not found, " + ex.Message); } return(null); }
private void MergeObjectsInSolutionData(EbMobileSolutionData New, List <AppData> OldApps) { if (OldApps == null) { return; } foreach (AppData app in New.Applications) { foreach (MobilePagesWraper wraper in app.MobilePages) { if (string.IsNullOrEmpty(wraper.Json)) { foreach (AppData _app in OldApps) { MobilePagesWraper _w = _app.MobilePages.Find(e => e.RefId == wraper.RefId); if (_w != null) { wraper.Json = _w.Json; break; } } } } foreach (WebObjectsWraper wraper in app.WebObjects) { if (string.IsNullOrEmpty(wraper.Json)) { foreach (AppData _app in OldApps) { WebObjectsWraper _w = _app.WebObjects.Find(e => e.RefId == wraper.RefId); if (_w != null) { wraper.Json = _w.Json; break; } } } } } }