public void AddProfile(ViewProfile vp) { if (!Views.ContainsKey(vp.CameraId)) Views.Add(vp.CameraId, new SortedList<int, ViewProfile>()); SortedList<int, ViewProfile> camViews = Views[vp.CameraId]; if (camViews.ContainsKey(vp.assetAlias)) return; camViews.Add(vp.assetAlias, vp); }
public void AddProfile(ViewProfile vp) { if (!Views.ContainsKey(vp.CameraId)) { Views.Add(vp.CameraId, new SortedList <int, ViewProfile>()); } SortedList <int, ViewProfile> camViews = Views[vp.CameraId]; if (camViews.ContainsKey(vp.assetAlias)) { return; } camViews.Add(vp.assetAlias, vp); }