public void UnBindNewMarker(uint systemId, NewMarker newMarker) { if (mData.ContainsKey(systemId) == false) { mData.Add(systemId, new List <NewMarker>()); } List <NewMarker> newMarkerList = mData[systemId]; if (newMarkerList.Contains(newMarker)) { newMarkerList.Remove(newMarker); } }
public void FreshNewMarker(NewMarker newMarker, bool show) { if (newMarker == null) { return; } if (newMarker.SystemId == 0) { return; } if (newMarker.RealObj != null) { newMarker.RealObj.SetActive(show); } }
public void FreshBySystemId(uint systemId, bool show) { if (mData.ContainsKey(systemId)) { List <NewMarker> newMarkerList = mData[systemId]; for (int i = 0; i < newMarkerList.Count; i++) { NewMarker newMarker = newMarkerList[i]; if (newMarker != null) { FreshNewMarker(newMarker, show); } } } }
/// <summary> /// The DisplayNewMarker method. /// </summary> /// <param name="dataSource">The data source associated with the new marker.</param> /// <param name="location">The location of the new marker.</param> public void DisplayNewMarker(DataSource dataSource, Point location) { var marker = new NewMarker { Name = dataSource.Name, AssociatedDataSourceId = dataSource.Id }; var pbx = new PictureBox { Tag = marker, Location = new Point(location.X - 16, location.Y - 16), Image = Resources.camera_online }; AddPictureBox(pbx, dataSource.Name); }