コード例 #1
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);
 }
コード例 #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);
        }