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);
 }
Exemple #2
0
        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);
        }