/// <summary>
 /// 复制构造函数
 /// </summary>
 /// <param name="hotSpotDatas"></param>
 public HotSpotDatas(HotSpotDatas hotSpotDatas)
 {
     foreach (HotspotData hotspotData in hotSpotDatas)
     {
         Add(hotspotData);
     }
 }
 public HotspotStrip()
 {
     InitializeComponent();
     if (hotspotDatas == null)
     {
         hotspotDatas = new HotSpotDatas();
     }
 }
 public void CanvasBase_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     if (hotspotDatas.Count <= 0)
     {
         hotspotDatas = new HotSpotDatas();
     }
     hotspotDatas.Sort();
     GrayPolygon.Points.Clear();
     GrayPolygon.Points.Add(new Point(0, CanvasBase.ActualHeight));
     GrayPolygon.Points.Add(new Point(0, CanvasBase.ActualHeight * (1 - hotspotDatas[0].Hotness)));
     foreach (HotspotData data in hotspotDatas)
     {
         GrayPolygon.Points.Insert(GrayPolygon.Points.Count, new Point(CanvasBase.ActualWidth * data.TimeStamp, CanvasBase.ActualHeight * (1 - data.Hotness)));
     }
     GrayPolygon.Points.Add(new Point(GrayPolygon.ActualWidth, CanvasBase.ActualHeight * (1 - hotspotDatas[hotspotDatas.Count - 1].Hotness)));
     GrayPolygon.Points.Add(new Point(GrayPolygon.ActualWidth, CanvasBase.ActualHeight));
 }