private void UpdateSavedIgloosMetaDataFromSavedgloosLayoutSummary(SavedIglooLayoutsSummary savedIglooLayoutsSummary) { SavedIgloosMetaData savedIgloosMetaData = getSavedIgloosMetaData(); savedIgloosMetaData.ActiveIglooId = savedIglooLayoutsSummary.activeLayoutId; savedIgloosMetaData.IglooVisibility = savedIglooLayoutsSummary.visibility; List <SavedIglooLayoutSummary> layoutsSummary = savedIglooLayoutsSummary.layouts; if (layoutsSummary != null) { List <SavedIglooMetaData> list = new List <SavedIglooMetaData>(savedIgloosMetaData.SavedIgloos); int i; for (i = 0; i < layoutsSummary.Count; i++) { int num = list.FindIndex((SavedIglooMetaData layout) => layout.LayoutId == layoutsSummary[i].layoutId); if (num >= 0) { list[num] = SavedIglooLayoutSummaryToSavedIglooMetaData(layoutsSummary[i]); } else { list.Add(SavedIglooLayoutSummaryToSavedIglooMetaData(layoutsSummary[i])); } } savedIgloosMetaData.SavedIgloos = list; } savedIgloosMetaData.IsDirty = false; }
public IglooDataLoaded(SavedIglooLayoutsSummary iglooData) { IglooData = iglooData; }