public void SetSASProfileList(Dictionary <string, SASProfile> profileList) { if (profileList != null && profileList.Values != null) { if (this.currentDicSystemInfo == null) { this.currentDicSystemInfo = new Dictionary <string, SASProfile>(); } foreach (SASProfile info in profileList.Values) { if (info == null) { continue; } SASProfile profile = new SASProfile(); profile.DeepCopyFrom(info); this.currentDicSystemInfo.Add(profile.ID, profile); } } }
public void SetSASInfo(Dictionary <string, SASInfo> systemInfo) { if (systemInfo != null && systemInfo.Values != null) { if (this.currentDicSystemInfo == null) { this.currentDicSystemInfo = new Dictionary <string, SASProfile>(); } foreach (SASInfo info in systemInfo.Values) { if (info == null || info.Profile == null) { continue; } SASProfile profile = new SASProfile(); profile.DeepCopyFrom(info.Profile); this.currentDicSystemInfo.Add(profile.ID, profile); } } }