Exemplo n.º 1
0
 /// <summary>
 /// Removes a snapshot from this topic
 /// </summary>
 /// <param name="viewpointGuid"></param>
 public void RemoveSnapshot(string viewpointGuid)
 {
     if (ViewpointSnapshots.ContainsKey(viewpointGuid))
     {
         _viewpointSnapshots.Remove(viewpointGuid);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds or updates a snapshots binary data
 /// </summary>
 /// <param name="viewpointGuid"></param>
 /// <param name="snapshotData"></param>
 public void AddOrUpdateSnapshot(string viewpointGuid, byte[] snapshotData)
 {
     if (ViewpointSnapshots.ContainsKey(viewpointGuid))
     {
         _viewpointSnapshots[viewpointGuid] = snapshotData;
     }
     else
     {
         _viewpointSnapshots.Add(viewpointGuid, snapshotData);
         // Add in Markup
         Markup.Viewpoints.First(v => v.Guid == viewpointGuid).Snapshot = "Snapshot_" + viewpointGuid + ".png";
     }
 }