Ejemplo n.º 1
0
 public void RectangleHotSpot_DefaultProperties()
 {
     RectangleHotSpot rect = new RectangleHotSpot();
     Assert.AreEqual(0, rect.Bottom, "Bottom");
     Assert.AreEqual(0, rect.Top, "Top");
     Assert.AreEqual(0, rect.Left, "Left");
     Assert.AreEqual(0, rect.Right, "Right");
 }
Ejemplo n.º 2
0
 public void HotSpotCollection_Remove()
 {
     HotSpotCollection spots = new HotSpotCollection();
     spots.Add(new CircleHotSpot());
     RectangleHotSpot rect = new RectangleHotSpot();
     spots.Add(rect);
     spots.Add(new CircleHotSpot());
     Assert.AreEqual(3, spots.Count, "BeforeRemove");
     spots.Remove(rect);
     Assert.AreEqual(2, spots.Count, "AfterRemove");
 }
Ejemplo n.º 3
0
 public void HotSpotCollection_Insert()
 {
     HotSpotCollection spots = new HotSpotCollection();
     spots.Add(new CircleHotSpot());
     spots.Add(new CircleHotSpot());
     Assert.AreEqual(2, spots.Count, "BeforeInsert");
     RectangleHotSpot rect = new RectangleHotSpot();
     spots.Insert(1,rect);
     Assert.AreEqual(3, spots.Count, "AfterInsert");
     Assert.AreEqual(rect.ToString(), spots[1].ToString(), "AfterInsert");
 }
Ejemplo n.º 4
0
 public void RectangleHotSpot_GetCoordinates()
  {
     RectangleHotSpot rect = new RectangleHotSpot();
     rect.Bottom = 10;
     rect.Top = 20;
     rect.Left = 30;
     rect.Right = 50;
     Assert.AreEqual(10, rect.Bottom, "BeforeGetCoordinates-Bottom");
     Assert.AreEqual(20, rect.Top, "BeforeGetCoordinates-Top");
     Assert.AreEqual(30, rect.Left, "BeforeGetCoordinates-Left");
     Assert.AreEqual(50, rect.Right, "BeforeGetCoordinates-Right");
     Assert.AreEqual("30,20,50,10", rect.GetCoordinates(), "AfterGetCoordinates");
 }
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string strControlId = string.Empty;
            if (Request.QueryString[SRPADVPOPUPID] != null)
                {
                    if (Request.QueryString[SRPADVPOPUPID].ToString().Length > 0)
                    {
                        strControlId = Request.QueryString[SRPADVPOPUPID].ToString();
                    }
               }
            StringBuilder strConfrimOnclickJavascript = new StringBuilder();
            strConfrimOnclickJavascript.Append("javascript:OnConfirmButtonClickOfChronostratic('");
            strConfrimOnclickJavascript.Append(strControlId);
            strConfrimOnclickJavascript.Append("','");
            strConfrimOnclickJavascript.Append(hidFldChronostrat.ClientID);
            strConfrimOnclickJavascript.Append("');return false;");
            btnConfirm.Attributes.Add(JAVASCRIPTONCLICK, strConfrimOnclickJavascript.ToString());

            RectangleHotSpot rectHotSpotLutetian = new RectangleHotSpot();
            rectHotSpotLutetian.Left = 171;
            rectHotSpotLutetian.Top = 167;
            rectHotSpotLutetian.Right = 317;
            rectHotSpotLutetian.Bottom = 186;
            rectHotSpotLutetian.NavigateUrl = AttachJavaScriptForHotSpot("Lutetian (LT)");
            rectHotSpotLutetian.AlternateText = "Lutetian (LT)";

            imgMapChronostrat.HotSpots.Add(rectHotSpotLutetian);

            RectangleHotSpot rectHotSpotMississipian = new RectangleHotSpot();
            rectHotSpotMississipian.Top = 188;
            rectHotSpotMississipian.Left = 503;
            rectHotSpotMississipian.Bottom = 269;
            rectHotSpotMississipian.Right = 575;
            rectHotSpotMississipian.NavigateUrl = AttachJavaScriptForHotSpot("Mississipian (MS)");
            rectHotSpotMississipian.AlternateText = "Mississipian (MS)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMississipian);

            RectangleHotSpot  rectHotSpotSixthStage = new RectangleHotSpot();
            rectHotSpotSixthStage.Left = 593;
            rectHotSpotSixthStage.Top = 540;
            rectHotSpotSixthStage.Right = 725;
            rectHotSpotSixthStage.Bottom = 555;
            rectHotSpotSixthStage.NavigateUrl = AttachJavaScriptForHotSpot("Sixth Stage (EE6)");
            rectHotSpotSixthStage.AlternateText = "Sixth Stage (EE6)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSixthStage);

            RectangleHotSpot  rectHotSpotTremadocian = new RectangleHotSpot();
            rectHotSpotTremadocian.Left = 592;
            rectHotSpotTremadocian.Top = 520;
            rectHotSpotTremadocian.Right = 724;
            rectHotSpotTremadocian.Bottom = 540;
            rectHotSpotTremadocian.NavigateUrl = AttachJavaScriptForHotSpot("Tremadocian (TM)");
            rectHotSpotTremadocian.AlternateText = "Tremadocian (TM)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotTremadocian);

            RectangleHotSpot  rectHotSpotSecondStage = new RectangleHotSpot();
            rectHotSpotSecondStage.Left = 593;
            rectHotSpotSecondStage.Top = 506;
            rectHotSpotSecondStage.Right = 725;
            rectHotSpotSecondStage.Bottom = 519;
            rectHotSpotSecondStage.NavigateUrl = AttachJavaScriptForHotSpot("Second Stage (OO2)");
            rectHotSpotSecondStage.AlternateText = "Second Stage (OO2)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSecondStage);

            RectangleHotSpot  rectHotSpotThirdStage = new RectangleHotSpot();
            rectHotSpotThirdStage.Left = 593;
            rectHotSpotThirdStage.Top = 496;
            rectHotSpotThirdStage.Right = 725;
            rectHotSpotThirdStage.Bottom = 505;
            rectHotSpotThirdStage.NavigateUrl = AttachJavaScriptForHotSpot("Third Stage (OO3)");
            rectHotSpotThirdStage.AlternateText = "Third Stage (OO3)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotThirdStage);

            RectangleHotSpot  rectHotSpotDarriwilian = new RectangleHotSpot();
            rectHotSpotDarriwilian.Left = 592;
            rectHotSpotDarriwilian.Top = 520;
            rectHotSpotDarriwilian.Right = 724;
            rectHotSpotDarriwilian.Bottom = 540;
            rectHotSpotDarriwilian.NavigateUrl = AttachJavaScriptForHotSpot("Darriwilian (DW)");
            rectHotSpotDarriwilian.NavigateUrl = "Darriwilian (DW)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotDarriwilian);

            RectangleHotSpot rectHotSpotFifthStage005 = new RectangleHotSpot();
            rectHotSpotFifthStage005.Left = 593;
            rectHotSpotFifthStage005.Top = 469;
            rectHotSpotFifthStage005.Right = 724;
            rectHotSpotFifthStage005.Bottom = 482;
            rectHotSpotFifthStage005.NavigateUrl = AttachJavaScriptForHotSpot("Fifth Stage (OO5)");
            rectHotSpotFifthStage005.AlternateText = "Fifth Stage (OO5)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotFifthStage005);

            RectangleHotSpot  rectHotSpotSixthStageOO6 = new RectangleHotSpot();
            rectHotSpotSixthStageOO6.Left = 593;
            rectHotSpotSixthStageOO6.Top = 457;
            rectHotSpotSixthStageOO6.Right = 725;
            rectHotSpotSixthStageOO6.Bottom = 469;
            rectHotSpotSixthStageOO6.NavigateUrl = AttachJavaScriptForHotSpot("Sixth Stage (OO6)");
            rectHotSpotSixthStageOO6.AlternateText = "Sixth Stage (OO6)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSixthStageOO6);

            RectangleHotSpot  rectHotSpotHimantian = new RectangleHotSpot();
            rectHotSpotHimantian.Left = 593;
            rectHotSpotHimantian.Top = 446;
            rectHotSpotHimantian.Right = 725;
            rectHotSpotHimantian.Bottom = 457;
            rectHotSpotHimantian.NavigateUrl = AttachJavaScriptForHotSpot("Himantian (HI)");
            rectHotSpotHimantian.AlternateText = "Himantian (HI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotHimantian);

            RectangleHotSpot  rectHotSpotLowerCambrian = new RectangleHotSpot();
            rectHotSpotLowerCambrian.Left = 504;
            rectHotSpotLowerCambrian.Top = 591;
            rectHotSpotLowerCambrian.Right = 725;
            rectHotSpotLowerCambrian.Bottom = 659;
            rectHotSpotLowerCambrian.NavigateUrl = AttachJavaScriptForHotSpot("Lower Cambrian (EL)");
            rectHotSpotLowerCambrian.AlternateText = "Lower Cambrian (EL)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerCambrian);

            RectangleHotSpot  rectHotSpotMiddleCambrian = new RectangleHotSpot();
            rectHotSpotMiddleCambrian.Left = 503;
            rectHotSpotMiddleCambrian.Top = 566;
            rectHotSpotMiddleCambrian.Right = 725;
            rectHotSpotMiddleCambrian.Bottom = 591;
            rectHotSpotMiddleCambrian.NavigateUrl = AttachJavaScriptForHotSpot("Middle Cambrian (EM)");
            rectHotSpotMiddleCambrian.AlternateText = "Middle Cambrian (EM)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMiddleCambrian);

            RectangleHotSpot  rectHotSpotFurongian = new RectangleHotSpot();
            rectHotSpotFurongian.Left = 504;
            rectHotSpotFurongian.Top = 540;
            rectHotSpotFurongian.Right = 592;
            rectHotSpotFurongian.Bottom = 566;
            rectHotSpotFurongian.NavigateUrl = AttachJavaScriptForHotSpot("Furongian (FU)");
            rectHotSpotFurongian.AlternateText = "Furongian (FU)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotFurongian);

            RectangleHotSpot  rectHotSpotCambrian = new RectangleHotSpot();
            rectHotSpotCambrian.Left = 462;
            rectHotSpotCambrian.Top = 540;
            rectHotSpotCambrian.Right = 503;
            rectHotSpotCambrian.Bottom = 661;
            rectHotSpotCambrian.NavigateUrl = AttachJavaScriptForHotSpot("Cambrian (EE)");
            rectHotSpotCambrian.AlternateText = "Cambrian (EE)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCambrian);

            RectangleHotSpot rectHotSpotLowerOol = new RectangleHotSpot();
            rectHotSpotLowerOol.Left = 504;
            rectHotSpotLowerOol.Top = 506;
            rectHotSpotLowerOol.Right = 592;
            rectHotSpotLowerOol.Bottom = 540;
            rectHotSpotLowerOol.NavigateUrl = AttachJavaScriptForHotSpot("Lower (OOL)");
            rectHotSpotLowerOol.AlternateText = "Lower (OOL)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerOol);

            RectangleHotSpot  rectHotSpotMiddleOOM = new RectangleHotSpot();
            rectHotSpotMiddleOOM.Left = 503;
            rectHotSpotMiddleOOM.Top = 483;
            rectHotSpotMiddleOOM.Right = 593;
            rectHotSpotMiddleOOM.Bottom = 506;
            rectHotSpotMiddleOOM.NavigateUrl = AttachJavaScriptForHotSpot("Middle (OOM)");
            rectHotSpotMiddleOOM.AlternateText = "Middle (OOM)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMiddleOOM);

            RectangleHotSpot  rectHotSpotUpperOrdovician = new RectangleHotSpot();
            rectHotSpotUpperOrdovician.Left = 504;
            rectHotSpotUpperOrdovician.Top = 446;
            rectHotSpotUpperOrdovician.Right = 593;
            rectHotSpotUpperOrdovician.Bottom = 483;
            rectHotSpotUpperOrdovician.NavigateUrl = AttachJavaScriptForHotSpot("Upper Ordovician (OOU)");
            rectHotSpotUpperOrdovician.AlternateText = "Upper Ordovician (OOU)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotUpperOrdovician);

            RectangleHotSpot  rectHotSpotAeronianRhuddian = new RectangleHotSpot();
            rectHotSpotAeronianRhuddian.Left = 593;
            rectHotSpotAeronianRhuddian.Top = 429;
            rectHotSpotAeronianRhuddian.Right = 725;
            rectHotSpotAeronianRhuddian.Bottom = 446;
            rectHotSpotAeronianRhuddian.NavigateUrl = AttachJavaScriptForHotSpot("Aeronian (AE)/Rhuddian (RD)");
            rectHotSpotAeronianRhuddian.AlternateText = "Aeronian (AE)/Rhuddian (RD)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotAeronianRhuddian);

            RectangleHotSpot  rectHotSpotTelychian = new RectangleHotSpot();
            rectHotSpotTelychian.Left = 593;
            rectHotSpotTelychian.Top = 413;
            rectHotSpotTelychian.Right = 725;
            rectHotSpotTelychian.Bottom = 446;
            rectHotSpotTelychian.NavigateUrl = AttachJavaScriptForHotSpot("Telychian (TE)");
            rectHotSpotTelychian.AlternateText = "Telychian (TE)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotTelychian);

            RectangleHotSpot  rectHotSpotLlandovery = new RectangleHotSpot();
            rectHotSpotLlandovery.Left = 504;
            rectHotSpotLlandovery.Top = 413;
            rectHotSpotLlandovery.Right = 592;
            rectHotSpotLlandovery.Bottom = 446;
            rectHotSpotLlandovery.NavigateUrl = AttachJavaScriptForHotSpot("Llandovery (LO)");
            rectHotSpotLlandovery.AlternateText = "Llandovery (LO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLlandovery);

            RectangleHotSpot  rectHotSpotWenlock = new RectangleHotSpot();
            rectHotSpotWenlock.Left = 504;
            rectHotSpotWenlock.Top = 403;
            rectHotSpotWenlock.Right = 725;
            rectHotSpotWenlock.Bottom = 413;
            rectHotSpotWenlock.NavigateUrl = AttachJavaScriptForHotSpot("Wenlock (WN)");
            rectHotSpotWenlock.AlternateText = "Wenlock (WN)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotWenlock);

            RectangleHotSpot  rectHotSpotLudlow = new RectangleHotSpot();
            rectHotSpotLudlow.Left = 504;
            rectHotSpotLudlow.Top = 394;
            rectHotSpotLudlow.Right = 725;
            rectHotSpotLudlow.Bottom = 403;
            rectHotSpotLudlow.NavigateUrl = AttachJavaScriptForHotSpot("Ludlow (LD)");
            rectHotSpotLudlow.AlternateText = "Ludlow (LD)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLudlow);

            RectangleHotSpot  rectHotSpotPridoli = new RectangleHotSpot();
            rectHotSpotPridoli.Left = 504;
            rectHotSpotPridoli.Top = 388;
            rectHotSpotPridoli.Right = 724;
            rectHotSpotPridoli.Bottom = 394;
            rectHotSpotPridoli.NavigateUrl = AttachJavaScriptForHotSpot("Pridoli (PD)");
            rectHotSpotPridoli.AlternateText = "Pridoli (PD)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPridoli);

            RectangleHotSpot  rectHotSpotLowerDevonian = new RectangleHotSpot();
            rectHotSpotLowerDevonian.Left = 504;
            rectHotSpotLowerDevonian.Top = 351;
            rectHotSpotLowerDevonian.Right = 593;
            rectHotSpotLowerDevonian.Bottom = 388;
            rectHotSpotLowerDevonian.NavigateUrl = AttachJavaScriptForHotSpot("Lower Devonian (DL)");
            rectHotSpotLowerDevonian.AlternateText = "Lower Devonian (DL)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerDevonian);

            RectangleHotSpot  rectHotSpotSilurian = new RectangleHotSpot();
            rectHotSpotSilurian.Left = 462;
            rectHotSpotSilurian.Top = 390;
            rectHotSpotSilurian.Right = 503;
            rectHotSpotSilurian.Bottom = 446;
            rectHotSpotSilurian.NavigateUrl = AttachJavaScriptForHotSpot("Silurian (SS)");
            rectHotSpotSilurian.AlternateText = "Silurian (SS)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSilurian);

            RectangleHotSpot  rectHotSpotDevonian = new RectangleHotSpot();
            rectHotSpotDevonian.Left = 462;
            rectHotSpotDevonian.Top = 270;
            rectHotSpotDevonian.Right = 503;
            rectHotSpotDevonian.Bottom = 390;
            rectHotSpotDevonian.NavigateUrl = AttachJavaScriptForHotSpot("Devonian (DD)");
            rectHotSpotDevonian.AlternateText = "Devonian (DD)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotDevonian);

            RectangleHotSpot  rectHotSpotLochkovian = new RectangleHotSpot();
            rectHotSpotLochkovian.Left = 593;
            rectHotSpotLochkovian.Top = 379;
            rectHotSpotLochkovian.Right = 725;
            rectHotSpotLochkovian.Bottom = 388;
            rectHotSpotLochkovian.NavigateUrl = AttachJavaScriptForHotSpot("Lochkovian (LK)");
            rectHotSpotLochkovian.AlternateText = "Lochkovian (LK)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLochkovian);

            RectangleHotSpot  rectHotSpotPragian = new RectangleHotSpot();
            rectHotSpotPragian.Left = 593;
            rectHotSpotPragian.Top = 369;
            rectHotSpotPragian.Right = 725;
            rectHotSpotPragian.Bottom = 379;
            rectHotSpotPragian.NavigateUrl = AttachJavaScriptForHotSpot("Pragian (PR)");
            rectHotSpotPragian.AlternateText = "Pragian (PR)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPragian);

            RectangleHotSpot  rectHotSpotEmsian = new RectangleHotSpot();
            rectHotSpotEmsian.Left = 593;
            rectHotSpotEmsian.Top = 351;
            rectHotSpotEmsian.Right = 725;
            rectHotSpotEmsian.Bottom = 368;
            rectHotSpotEmsian.NavigateUrl = AttachJavaScriptForHotSpot("Emsian (ES)");
            rectHotSpotEmsian.AlternateText = "Emsian (ES)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotEmsian);

            RectangleHotSpot  rectHotSpotEifelian = new RectangleHotSpot();
            rectHotSpotEifelian.Left = 593;
            rectHotSpotEifelian.Top = 341;
            rectHotSpotEifelian.Right = 724;
            rectHotSpotEifelian.Bottom = 350;
            rectHotSpotEifelian.NavigateUrl = AttachJavaScriptForHotSpot("Eifelian (EF)");
            rectHotSpotEifelian.AlternateText = "Eifelian (EF)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotEifelian);

            RectangleHotSpot  rectHotSpotGivetian = new RectangleHotSpot();
            rectHotSpotGivetian.Left = 593;
            rectHotSpotGivetian.Top = 326;
            rectHotSpotGivetian.Right = 725;
            rectHotSpotGivetian.Bottom = 341;
            rectHotSpotGivetian.NavigateUrl = AttachJavaScriptForHotSpot("Givetian (GI)");
            rectHotSpotGivetian.AlternateText = "Givetian (GI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotGivetian);

            RectangleHotSpot  rectHotSpotFrasnian = new RectangleHotSpot();
            rectHotSpotFrasnian.Left = 593;
            rectHotSpotFrasnian.Top = 303;
            rectHotSpotFrasnian.Right = 725;
            rectHotSpotFrasnian.Bottom = 325;
            rectHotSpotFrasnian.NavigateUrl = AttachJavaScriptForHotSpot("Frasnian (FS)");
            rectHotSpotFrasnian.AlternateText = "Frasnian (FS)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotFrasnian);

            RectangleHotSpot  rectHotSpotFamennian = new RectangleHotSpot();
            rectHotSpotFamennian.Left = 593;
            rectHotSpotFamennian.Top = 270;
            rectHotSpotFamennian.Right = 725;
            rectHotSpotFamennian.Bottom = 303;
            rectHotSpotFamennian.NavigateUrl = AttachJavaScriptForHotSpot("Famennian (FA)");
            rectHotSpotFamennian.AlternateText = "Famennian (FA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotFamennian);

            RectangleHotSpot  rectHotSpotMiddleDevonism = new RectangleHotSpot();
            rectHotSpotMiddleDevonism.Left = 504;
            rectHotSpotMiddleDevonism.Top = 326;
            rectHotSpotMiddleDevonism.Right = 592;
            rectHotSpotMiddleDevonism.Bottom = 350;
            rectHotSpotMiddleDevonism.NavigateUrl = AttachJavaScriptForHotSpot("Middle Devonism (DM)");
            rectHotSpotMiddleDevonism.AlternateText = "Middle Devonism (DM)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMiddleDevonism);

            RectangleHotSpot  rectHotSpotUpperDevonian = new RectangleHotSpot();
            rectHotSpotUpperDevonian.Left = 504;
            rectHotSpotUpperDevonian.Top = 270;
            rectHotSpotUpperDevonian.Right = 593;
            rectHotSpotUpperDevonian.Bottom = 326;
            rectHotSpotUpperDevonian.NavigateUrl = AttachJavaScriptForHotSpot("Upper Devonian (UD)");
            rectHotSpotUpperDevonian.AlternateText = "Upper Devonian (UD)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotUpperDevonian);

            RectangleHotSpot  rectHotSpotTournaisian = new RectangleHotSpot();
            rectHotSpotTournaisian.Left = 577;
            rectHotSpotTournaisian.Top = 243;
            rectHotSpotTournaisian.Right = 725;
            rectHotSpotTournaisian.Bottom = 270;
            rectHotSpotTournaisian.NavigateUrl = AttachJavaScriptForHotSpot("Tournaisian (TO)");
            rectHotSpotTournaisian.AlternateText = "Tournaisian (TO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotTournaisian);

            RectangleHotSpot  rectHotSpotVisean = new RectangleHotSpot();
            rectHotSpotVisean.Left = 577;
            rectHotSpotVisean.Top = 204;
            rectHotSpotVisean.Right = 725;
            rectHotSpotVisean.Bottom = 243;
            rectHotSpotVisean.NavigateUrl = AttachJavaScriptForHotSpot("Visean (VI)");
            rectHotSpotVisean.AlternateText = "Visean (VI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotVisean);

            RectangleHotSpot  rectHotSpotSerpukhovian = new RectangleHotSpot();
            rectHotSpotSerpukhovian.Left = 577;
            rectHotSpotSerpukhovian.Top = 188;
            rectHotSpotSerpukhovian.Right = 725;
            rectHotSpotSerpukhovian.Bottom = 204;
            rectHotSpotSerpukhovian.NavigateUrl = AttachJavaScriptForHotSpot("Serpukhovian (SP)");
            rectHotSpotSerpukhovian.AlternateText = "Serpukhovian (SP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSerpukhovian);

            RectangleHotSpot  rectHotSpotBashkirian = new RectangleHotSpot();
            rectHotSpotBashkirian.Left = 593;
            rectHotSpotBashkirian.Top = 172;
            rectHotSpotBashkirian.Right = 725;
            rectHotSpotBashkirian.Bottom = 187;
            rectHotSpotBashkirian.NavigateUrl = AttachJavaScriptForHotSpot("Bashkirian (BK)");
            rectHotSpotBashkirian.AlternateText = "Bashkirian (BK)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotBashkirian);

            RectangleHotSpot  rectHotSpotMoscovian = new RectangleHotSpot();
            rectHotSpotMoscovian.Left = 593;
            rectHotSpotMoscovian.Top = 162;
            rectHotSpotMoscovian.Right = 725;
            rectHotSpotMoscovian.Bottom = 172;
            rectHotSpotMoscovian.NavigateUrl = AttachJavaScriptForHotSpot("Moscovian (MO)");
            rectHotSpotMoscovian.AlternateText = "Moscovian (MO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMoscovian);

            RectangleHotSpot  rectHotSpotKasimovian = new RectangleHotSpot();
            rectHotSpotKasimovian.Left = 593;
            rectHotSpotKasimovian.Top = 156;
            rectHotSpotKasimovian.Right = 725;
            rectHotSpotKasimovian.Bottom = 162;
            rectHotSpotKasimovian.NavigateUrl = AttachJavaScriptForHotSpot("Kasimovian (KS)");
            rectHotSpotKasimovian.AlternateText = "Kasimovian (KS)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotKasimovian);

            RectangleHotSpot  rectHotSpotGzhelian = new RectangleHotSpot();
            rectHotSpotGzhelian.Left = 593;
            rectHotSpotGzhelian.Top = 147;
            rectHotSpotGzhelian.Right = 724;
            rectHotSpotGzhelian.Bottom = 155;
            rectHotSpotGzhelian.NavigateUrl = AttachJavaScriptForHotSpot("Gzhelian (GZ)");
            rectHotSpotGzhelian.AlternateText = "Gzhelian (GZ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotGzhelian);

            RectangleHotSpot  rectHotSpotLowerPennsylvanian = new RectangleHotSpot();
            rectHotSpotLowerPennsylvanian.Left = 577;
            rectHotSpotLowerPennsylvanian.Top = 172;
            rectHotSpotLowerPennsylvanian.Right = 592;
            rectHotSpotLowerPennsylvanian.Bottom = 187;
            rectHotSpotLowerPennsylvanian.NavigateUrl = AttachJavaScriptForHotSpot("Lower Pennsylvanian (PE)");
            rectHotSpotLowerPennsylvanian.AlternateText = "Lower Pennsylvanian (PE)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerPennsylvanian);

            RectangleHotSpot  rectHotSpotPennsylvanian = new RectangleHotSpot();
            rectHotSpotPennsylvanian.Left = 504;
            rectHotSpotPennsylvanian.Top = 146;
            rectHotSpotPennsylvanian.Right = 577;
            rectHotSpotPennsylvanian.Bottom = 188;
            rectHotSpotPennsylvanian.NavigateUrl = AttachJavaScriptForHotSpot("Pennsylvanian (PE)");
            rectHotSpotPennsylvanian.AlternateText = "Pennsylvanian (PE)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPennsylvanian);

            RectangleHotSpot  rectHotSpotAsselian = new RectangleHotSpot();
            rectHotSpotAsselian.Left = 593;
            rectHotSpotAsselian.Top = 138;
            rectHotSpotAsselian.Right = 725;
            rectHotSpotAsselian.Bottom = 146;
            rectHotSpotAsselian.NavigateUrl = AttachJavaScriptForHotSpot("Asselian (AS)");
            rectHotSpotAsselian.AlternateText = "Asselian (AS)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotAsselian);

            RectangleHotSpot  rectHotSpotSakmarian = new RectangleHotSpot();
            rectHotSpotSakmarian.Left = 593;
            rectHotSpotSakmarian.Top = 115;
            rectHotSpotSakmarian.Right = 725;
            rectHotSpotSakmarian.Bottom = 138;
            rectHotSpotSakmarian.NavigateUrl = AttachJavaScriptForHotSpot("Sakmarian (SR)");
            rectHotSpotSakmarian.AlternateText = "Sakmarian (SR)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSakmarian);

            RectangleHotSpot  rectHotSpotArtinkskian = new RectangleHotSpot();
            rectHotSpotArtinkskian.Left = 592;
            rectHotSpotArtinkskian.Top = 103;
            rectHotSpotArtinkskian.Right = 727;
            rectHotSpotArtinkskian.Bottom = 115;
            rectHotSpotArtinkskian.NavigateUrl = AttachJavaScriptForHotSpot("Artinkskian");
            rectHotSpotArtinkskian.AlternateText = "Artinkskian";
            imgMapChronostrat.HotSpots.Add(rectHotSpotArtinkskian);

            RectangleHotSpot  rectHotSpotPermian = new RectangleHotSpot();
            rectHotSpotPermian.Left = 593;
            rectHotSpotPermian.Top = 88;
            rectHotSpotPermian.Right = 725;
            rectHotSpotPermian.Bottom = 103;
            rectHotSpotPermian.NavigateUrl = AttachJavaScriptForHotSpot("Permian (KG)");
            rectHotSpotPermian.AlternateText = "Permian (KG)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPermian);

            RectangleHotSpot  rectHotSpotWordian = new RectangleHotSpot();
            rectHotSpotWordian.Left = 593;
            rectHotSpotWordian.Top = 80;
            rectHotSpotWordian.Right = 725;
            rectHotSpotWordian.Bottom = 87;
            rectHotSpotWordian.NavigateUrl = AttachJavaScriptForHotSpot("Wordian (WO)/Roadian (RO)");
            rectHotSpotWordian.AlternateText = "Wordian (WO)/Roadian (RO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotWordian);

            RectangleHotSpot  rectHotSpotCapitanian = new RectangleHotSpot();
            rectHotSpotCapitanian.Left = 593;
            rectHotSpotCapitanian.Top = 66;
            rectHotSpotCapitanian.Right = 725;
            rectHotSpotCapitanian.Bottom = 80;
            rectHotSpotCapitanian.NavigateUrl = AttachJavaScriptForHotSpot("Capitanian (CP)");
            rectHotSpotCapitanian.AlternateText = "Capitanian (CP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCapitanian);

            RectangleHotSpot  rectHotSpotWuchiapingian = new RectangleHotSpot();
            rectHotSpotWuchiapingian.Left = 593;
            rectHotSpotWuchiapingian.Top = 53;
            rectHotSpotWuchiapingian.Right = 725;
            rectHotSpotWuchiapingian.Bottom = 66;
            rectHotSpotWuchiapingian.NavigateUrl = AttachJavaScriptForHotSpot("Wuchiapingian (WU)");
            rectHotSpotWuchiapingian.AlternateText = "Wuchiapingian (WU)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotWuchiapingian);

            RectangleHotSpot  rectHotSpotChanghsingian = new RectangleHotSpot();
            rectHotSpotChanghsingian.Left = 593;
            rectHotSpotChanghsingian.Top = 46;
            rectHotSpotChanghsingian.Right = 725;
            rectHotSpotChanghsingian.Bottom = 53;
            rectHotSpotChanghsingian.NavigateUrl = AttachJavaScriptForHotSpot("Changhsingian (CS)");
            rectHotSpotChanghsingian.AlternateText = "Changhsingian (CS)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotChanghsingian);

            RectangleHotSpot  rectHotSpotCisuralian = new RectangleHotSpot();
            rectHotSpotCisuralian.Left = 504;
            rectHotSpotCisuralian.Top = 88;
            rectHotSpotCisuralian.Right = 593;
            rectHotSpotCisuralian.Bottom = 146;
            rectHotSpotCisuralian.NavigateUrl = AttachJavaScriptForHotSpot("Cisuralian (CI)");
            rectHotSpotCisuralian.AlternateText = "Cisuralian (CI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCisuralian);

            RectangleHotSpot  rectHotSpotGuadalupian = new RectangleHotSpot();
            rectHotSpotGuadalupian.Left = 503;
            rectHotSpotGuadalupian.Top = 66;
            rectHotSpotGuadalupian.Right = 593;
            rectHotSpotGuadalupian.Bottom = 88;
            rectHotSpotGuadalupian.NavigateUrl = AttachJavaScriptForHotSpot("Guadalupian (GP)");
            rectHotSpotGuadalupian.AlternateText = "Guadalupian (GP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotGuadalupian);

            RectangleHotSpot  rectHotSpotLopingian = new RectangleHotSpot();
            rectHotSpotLopingian.Left = 504;
            rectHotSpotLopingian.Top = 47;
            rectHotSpotLopingian.Right = 593;
            rectHotSpotLopingian.Bottom = 66;
            rectHotSpotLopingian.NavigateUrl = AttachJavaScriptForHotSpot("Lopingian (LP)");
            rectHotSpotLopingian.AlternateText = "Lopingian (LP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLopingian);

            RectangleHotSpot  rectHotSpotCarboniferous = new RectangleHotSpot();
            rectHotSpotCarboniferous.Left = 462;
            rectHotSpotCarboniferous.Top = 147;
            rectHotSpotCarboniferous.Right = 503;
            rectHotSpotCarboniferous.Bottom = 270;
            rectHotSpotCarboniferous.NavigateUrl = AttachJavaScriptForHotSpot("Carboniferous (CC)");
            rectHotSpotCarboniferous.AlternateText = "Carboniferous (CC)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCarboniferous);

            RectangleHotSpot  rectHotSpotPermianPP = new RectangleHotSpot();
            rectHotSpotPermianPP.Left = 462;
            rectHotSpotPermianPP.Top = 47;
            rectHotSpotPermianPP.Right = 504;
            rectHotSpotPermianPP.Bottom = 146;
            rectHotSpotPermianPP.NavigateUrl = AttachJavaScriptForHotSpot("Permian (PP)");
            rectHotSpotPermianPP.AlternateText = "Permian (PP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPermianPP);

            RectangleHotSpot  rectHotSpotPaleozoic = new RectangleHotSpot();
            rectHotSpotPaleozoic.Left = 420;
            rectHotSpotPaleozoic.Top = 47;
            rectHotSpotPaleozoic.Right = 462;
            rectHotSpotPaleozoic.Bottom = 659;
            rectHotSpotPaleozoic.NavigateUrl = AttachJavaScriptForHotSpot("Paleozoic (PZ)");
            rectHotSpotPaleozoic.AlternateText = "Paleozoic (PZ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPaleozoic);

            RectangleHotSpot  rectHotSpotInduan = new RectangleHotSpot();
            rectHotSpotInduan.Left = 184;
            rectHotSpotInduan.Top = 761;
            rectHotSpotInduan.Right = 319;
            rectHotSpotInduan.Bottom = 770;
            rectHotSpotInduan.NavigateUrl = AttachJavaScriptForHotSpot("Induan (IN)");
            rectHotSpotInduan.AlternateText = "Induan (IN)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotInduan);

            RectangleHotSpot  rectHotSpotOlenakian = new RectangleHotSpot();
            rectHotSpotOlenakian.Left = 184;
            rectHotSpotOlenakian.Top = 751;
            rectHotSpotOlenakian.Right = 317;
            rectHotSpotOlenakian.Bottom = 760;
            rectHotSpotOlenakian.NavigateUrl = AttachJavaScriptForHotSpot("Olenakian (OK)");
            rectHotSpotOlenakian.AlternateText = "Olenakian (OK)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotOlenakian);

            RectangleHotSpot  rectHotSpotAnisian = new RectangleHotSpot();
            rectHotSpotAnisian.Left = 184;
            rectHotSpotAnisian.Top = 727;
            rectHotSpotAnisian.Right = 318;
            rectHotSpotAnisian.Bottom = 751;
            rectHotSpotAnisian.NavigateUrl = AttachJavaScriptForHotSpot("Anisian (AN)");
            rectHotSpotAnisian.AlternateText = "Anisian (AN)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotAnisian);

            RectangleHotSpot  rectHotSpotLadinian = new RectangleHotSpot();
            rectHotSpotLadinian.Left = 184;
            rectHotSpotLadinian.Top = 703;
            rectHotSpotLadinian.Right = 318;
            rectHotSpotLadinian.Bottom = 727;
            rectHotSpotLadinian.NavigateUrl = AttachJavaScriptForHotSpot("Ladinian (LA)");
            rectHotSpotLadinian.AlternateText = "Ladinian (LA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLadinian);

            RectangleHotSpot  rectHotSpotCarnian = new RectangleHotSpot();
            rectHotSpotCarnian.Left = 184;
            rectHotSpotCarnian.Top = 670;
            rectHotSpotCarnian.Right = 318;
            rectHotSpotCarnian.Bottom = 702;
            rectHotSpotCarnian.NavigateUrl = AttachJavaScriptForHotSpot("Carnian (CR)");
            rectHotSpotCarnian.AlternateText = "Carnian (CR)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCarnian);

            RectangleHotSpot  rectHotSpotNorian = new RectangleHotSpot();
            rectHotSpotNorian.Left = 184;
            rectHotSpotNorian.Top = 632;
            rectHotSpotNorian.Right = 317;
            rectHotSpotNorian.Bottom = 667;
            rectHotSpotNorian.NavigateUrl = AttachJavaScriptForHotSpot("Norian (NO)");
            rectHotSpotNorian.AlternateText = "Norian (NO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotNorian);

            RectangleHotSpot  rectHotSpotRhaetian = new RectangleHotSpot();
            rectHotSpotRhaetian.Left = 184;
            rectHotSpotRhaetian.Top = 621;
            rectHotSpotRhaetian.Right = 317;
            rectHotSpotRhaetian.Bottom = 632;
            rectHotSpotRhaetian.NavigateUrl = AttachJavaScriptForHotSpot("Rhaetian (RH)");
            rectHotSpotRhaetian.AlternateText = "Rhaetian (RH)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotRhaetian);

            RectangleHotSpot  rectHotSpotHettangian = new RectangleHotSpot();
            rectHotSpotHettangian.Left = 184;
            rectHotSpotHettangian.Top = 608;
            rectHotSpotHettangian.Right = 316;
            rectHotSpotHettangian.Bottom = 621;
            rectHotSpotHettangian.NavigateUrl = AttachJavaScriptForHotSpot("Hettangian (HE)");
            rectHotSpotHettangian.AlternateText = "Hettangian (HE)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotHettangian);

            RectangleHotSpot  rectHotSpotSinemurian = new RectangleHotSpot();
            rectHotSpotSinemurian.Left = 184;
            rectHotSpotSinemurian.Top = 592;
            rectHotSpotSinemurian.Right = 317;
            rectHotSpotSinemurian.Bottom = 608;
            rectHotSpotSinemurian.NavigateUrl = AttachJavaScriptForHotSpot("Sinemurian (SM)");
            rectHotSpotSinemurian.AlternateText = "Sinemurian (SM)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSinemurian);

            RectangleHotSpot  rectHotSpotPliensbachian = new RectangleHotSpot();
            rectHotSpotPliensbachian.Left = 184;
            rectHotSpotPliensbachian.Top = 573;
            rectHotSpotPliensbachian.Right = 317;
            rectHotSpotPliensbachian.Bottom = 592;
            rectHotSpotPliensbachian.NavigateUrl = AttachJavaScriptForHotSpot("Pliensbachian (PB)");
            rectHotSpotPliensbachian.AlternateText = "Pliensbachian (PB)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPliensbachian);

            RectangleHotSpot  rectHotSpotToarcian = new RectangleHotSpot();
            rectHotSpotToarcian.Left = 184;
            rectHotSpotToarcian.Top = 551;
            rectHotSpotToarcian.Right = 317;
            rectHotSpotToarcian.Bottom = 573;
            rectHotSpotToarcian.NavigateUrl = AttachJavaScriptForHotSpot("Toarcian (TC)");
            rectHotSpotToarcian.AlternateText = "Toarcian (TC)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotToarcian);

            RectangleHotSpot  rectHotSpotAalenian = new RectangleHotSpot();
            rectHotSpotAalenian.Left = 184;
            rectHotSpotAalenian.Top = 540;
            rectHotSpotAalenian.Right = 319;
            rectHotSpotAalenian.Bottom = 551;
            rectHotSpotAalenian.NavigateUrl = AttachJavaScriptForHotSpot("Aalenian (AA)");
            rectHotSpotAalenian.AlternateText = "Aalenian (AA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotAalenian);

            RectangleHotSpot  rectHotSpotBajocian = new RectangleHotSpot();
            rectHotSpotBajocian.Left = 184;
            rectHotSpotBajocian.Top = 530;
            rectHotSpotBajocian.Right = 317;
            rectHotSpotBajocian.Bottom = 540;
            rectHotSpotBajocian.NavigateUrl = AttachJavaScriptForHotSpot("Bajocian (BJ)");
            rectHotSpotBajocian.AlternateText = "Bajocian (BJ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotBajocian);

            RectangleHotSpot  rectHotSpotBathonian = new RectangleHotSpot();
            rectHotSpotBathonian.Left = 184;
            rectHotSpotBathonian.Top = 520;
            rectHotSpotBathonian.Right = 318;
            rectHotSpotBathonian.Bottom = 530;
            rectHotSpotBathonian.NavigateUrl = AttachJavaScriptForHotSpot("Bathonian (BT)");
            rectHotSpotBathonian.AlternateText = "Bathonian (BT)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotBathonian);

            RectangleHotSpot  rectHotSpotCallovian = new RectangleHotSpot();
            rectHotSpotCallovian.Left = 184;
            rectHotSpotCallovian.Top = 509;
            rectHotSpotCallovian.Right = 318;
            rectHotSpotCallovian.Bottom = 520;
            rectHotSpotCallovian.NavigateUrl = AttachJavaScriptForHotSpot("Callovian (CN)");
            rectHotSpotCallovian.AlternateText = "Callovian (CN)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCallovian);

            RectangleHotSpot  rectHotSpotOxfordian = new RectangleHotSpot();
            rectHotSpotOxfordian.Left = 184;
            rectHotSpotOxfordian.Top = 493;
            rectHotSpotOxfordian.Right = 317;
            rectHotSpotOxfordian.Bottom = 509;
            rectHotSpotOxfordian.NavigateUrl = AttachJavaScriptForHotSpot("Oxfordian (OX)");
            rectHotSpotOxfordian.AlternateText = "Oxfordian (OX)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotOxfordian);

            RectangleHotSpot  rectHotSpotKimmeridgian = new RectangleHotSpot();
            rectHotSpotKimmeridgian.Left = 184;
            rectHotSpotKimmeridgian.Top = 478;
            rectHotSpotKimmeridgian.Right = 319;
            rectHotSpotKimmeridgian.Bottom = 493;
            rectHotSpotKimmeridgian.NavigateUrl = AttachJavaScriptForHotSpot("Kimmeridgian (KI)");
            rectHotSpotKimmeridgian.AlternateText = "Kimmeridgian (KI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotKimmeridgian);

            RectangleHotSpot  rectHotSpotTithonian = new RectangleHotSpot();
            rectHotSpotTithonian.Left = 184;
            rectHotSpotTithonian.Top = 465;
            rectHotSpotTithonian.Right = 318;
            rectHotSpotTithonian.Bottom = 478;
            rectHotSpotTithonian.NavigateUrl = AttachJavaScriptForHotSpot("Tithonian (TI)");
            rectHotSpotTithonian.AlternateText = "Tithonian (TI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotTithonian);

            RectangleHotSpot  rectHotSpotLowerTriassic = new RectangleHotSpot();
            rectHotSpotLowerTriassic.Left = 95;
            rectHotSpotLowerTriassic.Top = 751;
            rectHotSpotLowerTriassic.Right = 184;
            rectHotSpotLowerTriassic.Bottom = 770;
            rectHotSpotLowerTriassic.NavigateUrl = AttachJavaScriptForHotSpot("Lower Triassic (RL)");
            rectHotSpotLowerTriassic.AlternateText = "Lower Triassic (RL)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerTriassic);

            RectangleHotSpot  rectHotSpotMiddleTriassic = new RectangleHotSpot();
            rectHotSpotMiddleTriassic.Left = 95;
            rectHotSpotMiddleTriassic.Top = 703;
            rectHotSpotMiddleTriassic.Right = 184;
            rectHotSpotMiddleTriassic.Bottom = 751;
            rectHotSpotMiddleTriassic.NavigateUrl = AttachJavaScriptForHotSpot("Middle Triassic (RM)");
            rectHotSpotMiddleTriassic.AlternateText = "Middle Triassic (RM)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMiddleTriassic);

            RectangleHotSpot  rectHotSpotUpperTriassic = new RectangleHotSpot();
            rectHotSpotUpperTriassic.Left = 95;
            rectHotSpotUpperTriassic.Top = 621;
            rectHotSpotUpperTriassic.Right = 184;
            rectHotSpotUpperTriassic.Bottom = 703;
            rectHotSpotUpperTriassic.NavigateUrl = AttachJavaScriptForHotSpot("Upper Triassic (RU)");
            rectHotSpotUpperTriassic.AlternateText = "Upper Triassic (RU)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotUpperTriassic);

            RectangleHotSpot  rectHotSpotLowerJL = new RectangleHotSpot();
            rectHotSpotLowerJL.Left = 95;
            rectHotSpotLowerJL.Top = 551;
            rectHotSpotLowerJL.Right = 184;
            rectHotSpotLowerJL.Bottom = 621;
            rectHotSpotLowerJL.NavigateUrl = AttachJavaScriptForHotSpot("Lower (JL)");
            rectHotSpotLowerJL.AlternateText = "Lower (JL)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerJL);

            RectangleHotSpot  rectHotSpotMiddleJM = new RectangleHotSpot();
            rectHotSpotMiddleJM.Left = 95;
            rectHotSpotMiddleJM.Top = 509;
            rectHotSpotMiddleJM.Right = 184;
            rectHotSpotMiddleJM.Bottom = 551;
            rectHotSpotMiddleJM.NavigateUrl = AttachJavaScriptForHotSpot("Middle (JM)");
            rectHotSpotMiddleJM.AlternateText = "Middle (JM)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMiddleJM);

            RectangleHotSpot  rectHotSpotUpperJurassic = new RectangleHotSpot();
            rectHotSpotUpperJurassic.Left = 95;
            rectHotSpotUpperJurassic.Top = 465;
            rectHotSpotUpperJurassic.Right = 184;
            rectHotSpotUpperJurassic.Bottom = 509;
            rectHotSpotUpperJurassic.NavigateUrl = AttachJavaScriptForHotSpot("Upper Jurassic (JU)");
            rectHotSpotUpperJurassic.AlternateText = "Upper Jurassic (JU)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotUpperJurassic);

            RectangleHotSpot  rectHotSpotBerriasian = new RectangleHotSpot();
            rectHotSpotBerriasian.Left = 184;
            rectHotSpotBerriasian.Top = 450;
            rectHotSpotBerriasian.Right = 318;
            rectHotSpotBerriasian.Bottom = 464;
            rectHotSpotBerriasian.NavigateUrl = AttachJavaScriptForHotSpot("Berriasian (BE)");
            rectHotSpotBerriasian.AlternateText = "Berriasian (VA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotBerriasian);

            RectangleHotSpot  rectHotSpotValenginian = new RectangleHotSpot();
            rectHotSpotValenginian.Left = 184;
            rectHotSpotValenginian.Top = 438;
            rectHotSpotValenginian.Right = 317;
            rectHotSpotValenginian.Bottom = 450;
            rectHotSpotValenginian.NavigateUrl = AttachJavaScriptForHotSpot("Valenginian (VA)");
            rectHotSpotValenginian.AlternateText = "Valenginian (VA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotValenginian);

            RectangleHotSpot  rectHotSpotHauterivian = new RectangleHotSpot();
            rectHotSpotHauterivian.Left = 184;
            rectHotSpotHauterivian.Top = 419;
            rectHotSpotHauterivian.Right = 319;
            rectHotSpotHauterivian.Bottom = 438;
            rectHotSpotHauterivian.NavigateUrl = AttachJavaScriptForHotSpot("Hauterivian (HT)");
            rectHotSpotHauterivian.AlternateText = "Hauterivian (HT)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotHauterivian);

            RectangleHotSpot  rectHotSpotBarremian = new RectangleHotSpot();
            rectHotSpotBarremian.Left = 184;
            rectHotSpotBarremian.Top = 406;
            rectHotSpotBarremian.Right = 316;
            rectHotSpotBarremian.Bottom = 419;
            rectHotSpotBarremian.NavigateUrl = AttachJavaScriptForHotSpot("Barremian (BR)");
            rectHotSpotBarremian.AlternateText = "Barremian (BR)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotBarremian);

            RectangleHotSpot  rectHotSpotAptian = new RectangleHotSpot();
            rectHotSpotAptian.Left = 184;
            rectHotSpotAptian.Top = 369;
            rectHotSpotAptian.Right = 319;
            rectHotSpotAptian.Bottom = 406;
            rectHotSpotAptian.NavigateUrl = AttachJavaScriptForHotSpot("Aptian (AP)");
            rectHotSpotAptian.AlternateText = "Aptian (AP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotAptian);

            RectangleHotSpot  rectHotSpotAlbian = new RectangleHotSpot();
            rectHotSpotAlbian.Left = 184;
            rectHotSpotAlbian.Top = 332;
            rectHotSpotAlbian.Right = 319;
            rectHotSpotAlbian.Bottom = 369;
            rectHotSpotAlbian.NavigateUrl = AttachJavaScriptForHotSpot("Albian (AB)");
            rectHotSpotAlbian.AlternateText = "Albian (AB)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotAlbian);

            RectangleHotSpot  rectHotSpotLowerCretaceous = new RectangleHotSpot();
            rectHotSpotLowerCretaceous.Left = 95;
            rectHotSpotLowerCretaceous.Top = 332;
            rectHotSpotLowerCretaceous.Right = 184;
            rectHotSpotLowerCretaceous.Bottom = 465;
            rectHotSpotLowerCretaceous.NavigateUrl = AttachJavaScriptForHotSpot("Lower Cretaceous (KL)");
            rectHotSpotLowerCretaceous.AlternateText = "Lower Cretaceous (KL)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerCretaceous);

            RectangleHotSpot  rectHotSpotCenomanian = new RectangleHotSpot();
            rectHotSpotCenomanian.Left = 184;
            rectHotSpotCenomanian.Top = 315;
            rectHotSpotCenomanian.Right = 317;
            rectHotSpotCenomanian.Bottom = 332;
            rectHotSpotCenomanian.NavigateUrl = AttachJavaScriptForHotSpot("Cenomanian (CE)");
            rectHotSpotCenomanian.AlternateText = "Cenomanian (CE)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCenomanian);

            RectangleHotSpot  rectHotSpotTuronian = new RectangleHotSpot();
            rectHotSpotTuronian.Left = 184;
            rectHotSpotTuronian.Top = 303;
            rectHotSpotTuronian.Right = 319;
            rectHotSpotTuronian.Bottom = 315;
            rectHotSpotTuronian.NavigateUrl = AttachJavaScriptForHotSpot("Turonian (TR)");
            rectHotSpotTuronian.AlternateText = "Turonian (TR)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotTuronian);

            RectangleHotSpot  rectHotSpotConiacian = new RectangleHotSpot();
            rectHotSpotConiacian.Left = 184;
            rectHotSpotConiacian.Top = 292;
            rectHotSpotConiacian.Right = 317;
            rectHotSpotConiacian.Bottom = 303;
            rectHotSpotConiacian.NavigateUrl = AttachJavaScriptForHotSpot("Coniacian (CO)");
            rectHotSpotConiacian.AlternateText = "Coniacian (CO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotConiacian);

            RectangleHotSpot  rectHotSpotSantonian = new RectangleHotSpot();
            rectHotSpotSantonian.Left = 184;
            rectHotSpotSantonian.Top = 278;
            rectHotSpotSantonian.Right = 316;
            rectHotSpotSantonian.Bottom = 292;
            rectHotSpotSantonian.NavigateUrl = AttachJavaScriptForHotSpot("Santonian (SA)");
            rectHotSpotSantonian.AlternateText = "Santonian (SA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSantonian);

            RectangleHotSpot  rectHotSpotCampanian = new RectangleHotSpot();
            rectHotSpotCampanian.Left = 184;
            rectHotSpotCampanian.Top = 251;
            rectHotSpotCampanian.Right = 317;
            rectHotSpotCampanian.Bottom = 278;
            rectHotSpotCampanian.NavigateUrl = AttachJavaScriptForHotSpot("Campanian (CA)");
            rectHotSpotCampanian.AlternateText = "Campanian (CA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCampanian);

            RectangleHotSpot  rectHotSpotMaastrichtian = new RectangleHotSpot();
            rectHotSpotMaastrichtian.Left = 184;
            rectHotSpotMaastrichtian.Top = 236;
            rectHotSpotMaastrichtian.Right = 319;
            rectHotSpotMaastrichtian.Bottom = 251;
            rectHotSpotMaastrichtian.NavigateUrl = AttachJavaScriptForHotSpot("Maastrichtian (MA)");
            rectHotSpotMaastrichtian.AlternateText = "Maastrichtian (MA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMaastrichtian);

            RectangleHotSpot  rectHotSpotUpperCretaceous = new RectangleHotSpot();
            rectHotSpotUpperCretaceous.Left = 95;
            rectHotSpotUpperCretaceous.Top = 236;
            rectHotSpotUpperCretaceous.Right = 184;
            rectHotSpotUpperCretaceous.Bottom = 332;
            rectHotSpotUpperCretaceous.NavigateUrl = AttachJavaScriptForHotSpot("Upper Cretaceous (KU)");
            rectHotSpotUpperCretaceous.AlternateText = "Upper Cretaceous (KU)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotUpperCretaceous);

            RectangleHotSpot  rectHotSpotDanian = new RectangleHotSpot();
            rectHotSpotDanian.Left = 171;
            rectHotSpotDanian.Top = 225;
            rectHotSpotDanian.Right = 317;
            rectHotSpotDanian.Bottom = 236;
            rectHotSpotDanian.NavigateUrl = AttachJavaScriptForHotSpot("Danian (DA)");
            rectHotSpotDanian.AlternateText = "Danian (DA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotDanian);

            RectangleHotSpot  rectHotSpotSelandian = new RectangleHotSpot();
            rectHotSpotSelandian.Left = 171;
            rectHotSpotSelandian.Top = 216;
            rectHotSpotSelandian.Right = 319;
            rectHotSpotSelandian.Bottom = 225;
            rectHotSpotSelandian.NavigateUrl = AttachJavaScriptForHotSpot("Selandian (SE)");
            rectHotSpotSelandian.AlternateText = "Selandian (SE)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotSelandian);

            RectangleHotSpot  rectHotSpotThanetian = new RectangleHotSpot();
            rectHotSpotThanetian.Left = 171;
            rectHotSpotThanetian.Top = 208;
            rectHotSpotThanetian.Right = 317;
            rectHotSpotThanetian.Bottom = 216;
            rectHotSpotThanetian.NavigateUrl =AttachJavaScriptForHotSpot("Thanetian (TA)");
            rectHotSpotThanetian.AlternateText = "Thanetian (TA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotThanetian);

            RectangleHotSpot  rectHotSpotYpresian = new RectangleHotSpot();
            rectHotSpotYpresian.Left = 171;
            rectHotSpotYpresian.Top = 188;
            rectHotSpotYpresian.Right = 317;
            rectHotSpotYpresian.Bottom = 207;
            rectHotSpotYpresian.NavigateUrl = AttachJavaScriptForHotSpot("Ypresian (YP)");
            rectHotSpotYpresian.AlternateText = "Ypresian (YP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotYpresian);

            RectangleHotSpot  rectHotSpotBartonian = new RectangleHotSpot();
            rectHotSpotBartonian.Left = 171;
            rectHotSpotBartonian.Top = 156;
            rectHotSpotBartonian.Right = 320;
            rectHotSpotBartonian.Bottom = 166;
            rectHotSpotBartonian.NavigateUrl = AttachJavaScriptForHotSpot("Bartonian (BA)");
            rectHotSpotBartonian.AlternateText = "Bartonian (BA)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotBartonian);

            RectangleHotSpot  rectHotSpotPriabonian = new RectangleHotSpot();
            rectHotSpotPriabonian.Left = 171;
            rectHotSpotPriabonian.Top = 147;
            rectHotSpotPriabonian.Right = 317;
            rectHotSpotPriabonian.Bottom = 156;
            rectHotSpotPriabonian.NavigateUrl = AttachJavaScriptForHotSpot("Priabonian (PO)");
            rectHotSpotPriabonian.AlternateText = "Priabonian (PO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPriabonian);

            RectangleHotSpot  rectHotSpotRupelian = new RectangleHotSpot();
            rectHotSpotRupelian.Left = 171;
            rectHotSpotRupelian.Top = 130;
            rectHotSpotRupelian.Right = 320;
            rectHotSpotRupelian.Bottom = 146;
            rectHotSpotRupelian.NavigateUrl = AttachJavaScriptForHotSpot("Rupelian (RP)");
            rectHotSpotRupelian.AlternateText = "Rupelian (RP)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotRupelian);

            RectangleHotSpot  rectHotSpotChattian = new RectangleHotSpot();
            rectHotSpotChattian.Left = 171;
            rectHotSpotChattian.Top = 113;
            rectHotSpotChattian.Right = 320;
            rectHotSpotChattian.Bottom = 129;
            rectHotSpotChattian.NavigateUrl = AttachJavaScriptForHotSpot("Chattian (CH)");
            rectHotSpotChattian.AlternateText = "Chattian (CH)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotChattian);

            RectangleHotSpot  rectHotSpotLowerMiocene = new RectangleHotSpot();
            rectHotSpotLowerMiocene.Left = 171;
            rectHotSpotLowerMiocene.Top = 94;
            rectHotSpotLowerMiocene.Right = 320;
            rectHotSpotLowerMiocene.Bottom = 112;
            rectHotSpotLowerMiocene.NavigateUrl = AttachJavaScriptForHotSpot("Lower Miocene (MI)");
            rectHotSpotLowerMiocene.AlternateText = "Lower Miocene (MI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotLowerMiocene);

            RectangleHotSpot  rectHotSpotMidMiocene = new RectangleHotSpot();
            rectHotSpotMidMiocene.Left = 171;
            rectHotSpotMidMiocene.Top = 80;
            rectHotSpotMidMiocene.Right = 320;
            rectHotSpotMidMiocene.Bottom = 94;
            rectHotSpotMidMiocene.NavigateUrl = AttachJavaScriptForHotSpot("Mid Miocene (MI)");
            rectHotSpotMidMiocene.AlternateText = "Mid Miocene (MI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMidMiocene);

            RectangleHotSpot  rectHotSpotUpperMiocene = new RectangleHotSpot();
            rectHotSpotUpperMiocene.Left = 171;
            rectHotSpotUpperMiocene.Top = 63;
            rectHotSpotUpperMiocene.Right = 320;
            rectHotSpotUpperMiocene.Bottom = 80;
            rectHotSpotUpperMiocene.NavigateUrl = AttachJavaScriptForHotSpot("Upper Miocene (MI)");
            rectHotSpotUpperMiocene.AlternateText = "Upper Miocene (MI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotUpperMiocene);

            RectangleHotSpot  rectHotSpotPaleocene = new RectangleHotSpot();
            rectHotSpotPaleocene.Left = 95;
            rectHotSpotPaleocene.Top = 208;
            rectHotSpotPaleocene.Right = 171;
            rectHotSpotPaleocene.Bottom = 236;
            rectHotSpotPaleocene.NavigateUrl = AttachJavaScriptForHotSpot("Paleocene (PC)");
            rectHotSpotPaleocene.AlternateText = "Paleocene (PC)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPaleocene);

            RectangleHotSpot  rectHotSpotEocene = new RectangleHotSpot();
            rectHotSpotEocene.Left = 95;
            rectHotSpotEocene.Top = 147;
            rectHotSpotEocene.Right = 170;
            rectHotSpotEocene.Bottom = 208;
            rectHotSpotEocene.NavigateUrl = AttachJavaScriptForHotSpot("Eocene (EO)");
            rectHotSpotEocene.AlternateText = "Eocene (EO)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotEocene);

            RectangleHotSpot  rectHotSpotOligocene = new RectangleHotSpot();
            rectHotSpotOligocene.Left = 95;
            rectHotSpotOligocene.Top = 113;
            rectHotSpotOligocene.Right = 171;
            rectHotSpotOligocene.Bottom = 147;
            rectHotSpotOligocene.NavigateUrl = AttachJavaScriptForHotSpot("Oligocene (OL)");
            rectHotSpotOligocene.AlternateText = "Oligocene (OL)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotOligocene);

            RectangleHotSpot  rectHotSpotPleistocene = new RectangleHotSpot();
            rectHotSpotPleistocene.Left = 95;
            rectHotSpotPleistocene.Top = 47;
            rectHotSpotPleistocene.Right = 320;
            rectHotSpotPleistocene.Bottom = 53;
            rectHotSpotPleistocene.NavigateUrl = AttachJavaScriptForHotSpot("Pleistocene (PS)");
            rectHotSpotPleistocene.AlternateText = "Pleistocene (PS)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPleistocene);

            RectangleHotSpot  rectHotSpotPliocene = new RectangleHotSpot();
            rectHotSpotPliocene.Left = 95;
            rectHotSpotPliocene.Top = 53;
            rectHotSpotPliocene.Right = 320;
            rectHotSpotPliocene.Bottom = 63;
            rectHotSpotPliocene.NavigateUrl = AttachJavaScriptForHotSpot("Pliocene (PI)");
            rectHotSpotPliocene.AlternateText = "Pliocene (PI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPliocene);

            RectangleHotSpot  rectHotSpotMiocene = new RectangleHotSpot();
            rectHotSpotMiocene.Left = 95;
            rectHotSpotMiocene.Top = 63;
            rectHotSpotMiocene.Right = 171;
            rectHotSpotMiocene.Bottom = 112;
            rectHotSpotMiocene.NavigateUrl = AttachJavaScriptForHotSpot("Miocene (MI)");
            rectHotSpotMiocene.AlternateText = "Miocene (MI)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMiocene);

            RectangleHotSpot  rectHotSpotTriassic = new RectangleHotSpot();
            rectHotSpotTriassic.Left = 52;
            rectHotSpotTriassic.Top = 621;
            rectHotSpotTriassic.Right = 95;
            rectHotSpotTriassic.Bottom = 770;
            rectHotSpotTriassic.NavigateUrl = AttachJavaScriptForHotSpot("Triassic (JJ)");
            rectHotSpotTriassic.AlternateText = "Triassic (JJ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotTriassic);

            RectangleHotSpot  rectHotSpotJurassic = new RectangleHotSpot();
            rectHotSpotJurassic.Left = 52;
            rectHotSpotJurassic.Top = 465;
            rectHotSpotJurassic.Right = 95;
            rectHotSpotJurassic.Bottom = 621;
            rectHotSpotJurassic.NavigateUrl = AttachJavaScriptForHotSpot("Jurassic (JJ)");
            rectHotSpotJurassic.AlternateText = "Jurassic (JJ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotJurassic);

            RectangleHotSpot  rectHotSpotCretaceous = new RectangleHotSpot();
            rectHotSpotCretaceous.Left = 52;
            rectHotSpotCretaceous.Top = 236;
            rectHotSpotCretaceous.Right = 95;
            rectHotSpotCretaceous.Bottom = 465;
            rectHotSpotCretaceous.NavigateUrl = AttachJavaScriptForHotSpot("Cretaceous (KK)");
            rectHotSpotCretaceous.AlternateText = "Cretaceous (KK)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCretaceous);

            RectangleHotSpot  rectHotSpotPaleogene = new RectangleHotSpot();
            rectHotSpotPaleogene.Left = 52;
            rectHotSpotPaleogene.Top = 113;
            rectHotSpotPaleogene.Right = 95;
            rectHotSpotPaleogene.Bottom = 236;
            rectHotSpotPaleogene.NavigateUrl = AttachJavaScriptForHotSpot("Paleogene (PG)");
            rectHotSpotPaleogene.AlternateText = "Paleogene (PG)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotPaleogene);

            RectangleHotSpot  rectHotSpotNeogene = new RectangleHotSpot();
            rectHotSpotNeogene.Left = 52;
            rectHotSpotNeogene.Top = 47;
            rectHotSpotNeogene.Right = 95;
            rectHotSpotNeogene.Bottom = 113;
            rectHotSpotNeogene.NavigateUrl = AttachJavaScriptForHotSpot("Neogene (NG)");
            rectHotSpotNeogene.AlternateText = "Neogene (NG)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotNeogene);

            RectangleHotSpot  rectHotSpotMesozoic = new RectangleHotSpot();
            rectHotSpotMesozoic.NavigateUrl = "chronstrat.aspx";
            rectHotSpotMesozoic.Left = 9;
            rectHotSpotMesozoic.Top = 236;
            rectHotSpotMesozoic.Right = 52;
            rectHotSpotMesozoic.Bottom = 771;
            rectHotSpotMesozoic.NavigateUrl = AttachJavaScriptForHotSpot("Mesozoic (MZ)");
            rectHotSpotMesozoic.AlternateText = "Mesozoic (MZ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotMesozoic);

            RectangleHotSpot  rectHotSpotCenozoic = new RectangleHotSpot();
            rectHotSpotCenozoic.Left = 9;
            rectHotSpotCenozoic.Top = 47;
            rectHotSpotCenozoic.Right = 52;
            rectHotSpotCenozoic.Bottom = 236;
            rectHotSpotCenozoic.NavigateUrl = AttachJavaScriptForHotSpot("Cenozoic (CZ)");
            rectHotSpotCenozoic.AlternateText = "Cenozoic (CZ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpotCenozoic);

            RectangleHotSpot  rectHotSpottest = new RectangleHotSpot();
            rectHotSpottest.Left = 577;
            rectHotSpottest.Top = 160;
            rectHotSpottest.Right = 592;
            rectHotSpottest.Bottom = 172;
            rectHotSpottest.NavigateUrl = AttachJavaScriptForHotSpot("test (CZ)");
            rectHotSpottest.AlternateText = "test (CZ)";
            imgMapChronostrat.HotSpots.Add(rectHotSpottest);
        }
        //protected HtmlTable tblGSCObjectsInCell;
        protected void Page_Load(object sender, EventArgs e)
        {
            string imageUrl = Request.Params["imageUrl"].ToString();
            ImageMap1.ImageUrl = imageUrl;

            //string imageMetafileUrl = Request.Params["imageUrl"].ToString();
            string imageMetafileUrl = imageUrl.Substring(0, imageUrl.Length - 9) + ".meta.txt";

            //string[] lines = System.IO.File.ReadAllLines(@"D:\\Workspace\\CMSC 668\\Catalogs\\fits1.meta.txt");

            //string[] lines = System.IO.File.ReadAllLines(imageMetafileUrl);

            string metaContents;
            using (WebClient client = new WebClient())
            {
                 metaContents = client.DownloadString(imageMetafileUrl);
            }
            string[]  lines = metaContents.Split('\n');

            string ctype1 = lines[8];
            double RA0, DEC0, X0, Y0, drax, dray, ddecx, ddecy;
            //Label1.Text = lines[11].Split(' ')[1];

            X0 = double.Parse(lines[10].Split(' ')[1], System.Globalization.NumberStyles.Float);

            Y0 = double.Parse(lines[11].Split(' ')[1], System.Globalization.NumberStyles.Float);
            if ((ctype1.Split(' ')[1])[0] == 'R')
            {
                RA0 = double.Parse(lines[12].Split(' ')[1], System.Globalization.NumberStyles.Float);
                DEC0 = double.Parse(lines[13].Split(' ')[1], System.Globalization.NumberStyles.Float);

                drax = double.Parse(lines[14].Split(' ')[1], System.Globalization.NumberStyles.Float);
                dray = double.Parse(lines[15].Split(' ')[1], System.Globalization.NumberStyles.Float);

                ddecx = double.Parse(lines[16].Split(' ')[1], System.Globalization.NumberStyles.Float);
                ddecy = double.Parse(lines[17].Split(' ')[1], System.Globalization.NumberStyles.Float);
            }
            else
            {
                RA0 = double.Parse(lines[13].Split(' ')[1], System.Globalization.NumberStyles.Float);
                DEC0 = double.Parse(lines[12].Split(' ')[1], System.Globalization.NumberStyles.Float);

                drax = double.Parse(lines[16].Split(' ')[1], System.Globalization.NumberStyles.Float);
                dray = double.Parse(lines[17].Split(' ')[1], System.Globalization.NumberStyles.Float);

                ddecx = double.Parse(lines[14].Split(' ')[1], System.Globalization.NumberStyles.Float);
                ddecy = double.Parse(lines[15].Split(' ')[1], System.Globalization.NumberStyles.Float);
            }

            int rightMax = int.Parse(lines[1].Split(' ')[1]);

            int bottomMax = int.Parse(lines[0].Split(' ')[1]);
            int gridCellSize = 1000;
            int x = 0;
            int y = 0;
            int xMax = int.Parse(Math.Truncate(((double)rightMax / gridCellSize)).ToString());
            int yMax = int.Parse(Math.Truncate(((double)bottomMax / gridCellSize)).ToString());
            RectangleHotSpot skySection;
            double[] ra = new double[4];
            double[] dec = new double[4];
            double minRA, maxRA, minDec, maxDec;
            while (y <= yMax)
            {
                x = 0;
                while (x <= xMax)
                {
                    skySection = new RectangleHotSpot();
                    skySection.AlternateText = "Section(" + x + "," + y + ")";
                    skySection.HotSpotMode = HotSpotMode.PostBack;
                    skySection.Target = "_self";

                    ra[0] = RA0 + drax * ((x * gridCellSize) - X0) + dray * ((y * gridCellSize) - Y0);
                    ra[1] = RA0 + drax * (((x * gridCellSize) + gridCellSize) - X0) + dray * ((y * gridCellSize) - Y0);
                    ra[2] = RA0 + drax * ((x * gridCellSize) - X0) + dray * (((y * gridCellSize) + gridCellSize) - Y0);
                    ra[3] = RA0 + drax * (((x * gridCellSize) + gridCellSize) - X0) + dray * (((y * gridCellSize) + gridCellSize) - Y0);
                    maxRA = ra.Max();
                    minRA = ra.Min();

                    dec[0] = DEC0 + ddecx * ((x * gridCellSize) - X0) + ddecy * ((y * gridCellSize) - Y0);
                    dec[1] = DEC0 + ddecx * (((x * gridCellSize) + gridCellSize) - X0) + dray * ((y * gridCellSize) - Y0);
                    dec[2] = DEC0 + ddecx * ((x * gridCellSize) - X0) + dray * (((y * gridCellSize) + gridCellSize) - Y0);
                    dec[3] = DEC0 + ddecx * (((x * gridCellSize) + gridCellSize) - X0) + dray * (((y * gridCellSize) + gridCellSize) - Y0);
                    maxDec = dec.Max();
                    minDec = dec.Min();

                    skySection.PostBackValue = minRA.ToString() + " " + maxRA.ToString() + " " +
                        minDec.ToString() + " " + maxDec.ToString();
                    skySection.Left = x * gridCellSize;
                    skySection.Bottom = (y * gridCellSize) + gridCellSize;

                    skySection.Top = y * gridCellSize;
                    skySection.Right = (x * gridCellSize) + gridCellSize;

                    ImageMap1.HotSpots.Add(skySection);

                    x++;
                }

                y++;
            }

            string sdssServiceBasePath = "http://localhost:8080/SDSS/rest?" +
                "skip_auth=true&method=METHOD5&format=xml&start=0&rows=100";
            sdssServiceBasePath += "&imageName=" + Server.UrlEncode(Request.Params["imageName"].ToString().Substring(1));

            HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(sdssServiceBasePath);
            WebResponse serviceResponse = myReq.GetResponse();

            hlAllSDSSObjects.NavigateUrl = sdssServiceBasePath;

            XPathNavigator nav;
            XPathDocument docNav;
            XPathNodeIterator NodeIter;
            string strExpression;

            // Open the XML.
            docNav = new XPathDocument(serviceResponse.GetResponseStream());

            // Create a navigator to query with XPath.
            nav = docNav.CreateNavigator();

            //expression to read GSC objects
            strExpression = "/myResponse/body/size";

            // Select the node and place the results in an iterator.
            NodeIter = nav.Select(strExpression);
            NodeIter.MoveNext();
            Label3.Text = "SDSS Objects in Image : " + NodeIter.Current.Value;

            strExpression = "/myResponse/body/*";

            TableRow row = new TableRow();
            TableCell cell = new TableCell();

            NodeIter = nav.Select(strExpression);
            //Iterate through the results showing the element value.
            while (NodeIter.MoveNext())
            {
                if (NodeIter.Current.LocalName == "size")
                {
                    Label3.Text = "SDSS Objects in Image : " + NodeIter.Current.Value;
                }
                else
                {
                    row = new TableRow();

                    //gen.InnerHtml += "<tr>";
                    XPathNodeIterator innerIterator = NodeIter.Current.SelectChildren(XPathNodeType.Element);
                    while (innerIterator.MoveNext())
                    {
                        cell = new TableCell();
                        cell.Text = innerIterator.Current.Value;
                        row.Cells.Add(cell);
                    }
                    tblAllSDSSObjects.Rows.Add(row);
                }
            }
        }
Ejemplo n.º 7
0
		public static void myPageLoad (Page page)
		{
			WebTest.CurrentTest.UserData = "Init";
			ImageMap imgmap = new ImageMap ();
			imgmap.ID = "imgmap";
			imgmap.HotSpotMode = HotSpotMode.NotSet;
			imgmap.Click += new ImageMapEventHandler (ImageMapClickHandler2);
			RectangleHotSpot rect = new RectangleHotSpot ();
			rect.HotSpotMode = HotSpotMode.PostBack;
			rect.PostBackValue = "Rectangle";
			imgmap.HotSpots.Add (rect);
			PolygonHotSpot poly = new PolygonHotSpot ();
			poly.HotSpotMode = HotSpotMode.PostBack;
			poly.PostBackValue = "Polygon";
			imgmap.HotSpots.Add (poly);
			imgmap.HotSpotMode = HotSpotMode.PostBack;
			CircleHotSpot circle = new CircleHotSpot ();
			circle.PostBackValue = "Circle";
			imgmap.HotSpots.Add (circle);
			// Two marks for getting controls from form
			LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
			LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
			page.Form.Controls.Add (lcb);
			page.Form.Controls.Add (imgmap);
			page.Form.Controls.Add (lce);
		}
Ejemplo n.º 8
0
		public static void PostBackFireEvent_Init (Page p)
		{
			ImageMap imgmap = new ImageMap ();
			imgmap.ID = "imgmap";
			imgmap.HotSpotMode = HotSpotMode.NotSet;
			imgmap.Click += new ImageMapEventHandler (ImageMapClickHandler3);
			RectangleHotSpot rect = new RectangleHotSpot ();
			rect.HotSpotMode = HotSpotMode.PostBack;
			rect.PostBackValue = "Rectangle";
			imgmap.HotSpots.Add (rect);
			p.Form.Controls.Add (imgmap);
		}
Ejemplo n.º 9
0
		public void ImageMap_EventRectangle ()
		{
			PokerImageMap imageMap = new PokerImageMap ();
			ResetEvents ();
			imageMap.HotSpotMode = HotSpotMode.PostBack;
			RectangleHotSpot rect = new RectangleHotSpot ();
			rect.PostBackValue = "myRect";
			imageMap.HotSpots.Add (rect);
			imageMap.Click += new ImageMapEventHandler (ImageMapClickHandler);
			Assert.AreEqual ("Init", pbValue, "BeforeClick");
			imageMap.DoOnClick (new ImageMapEventArgs (rect.PostBackValue));
			Assert.AreEqual ("myRect", pbValue, "AfterClick");
		}
Ejemplo n.º 10
0
		public void ImageMap_AssignedValues_RenderNavigateShapes ()
		{
			// Rectangle/Polygon.HotSpotMode = Navigate 
			//-----------------------------------------
			PokerImageMap imageMap = new PokerImageMap ();
			imageMap.Enabled = true;
			imageMap.HotSpotMode = HotSpotMode.NotSet;
			RectangleHotSpot rect = new RectangleHotSpot ();
			rect.AccessKey = "R";
			rect.AlternateText = "Rectangle";
			rect.HotSpotMode = HotSpotMode.Navigate;
			rect.NavigateUrl = "NavigateUrlRect";
			rect.TabIndex = 1;
			rect.Bottom = 10;
			rect.Top = 20;
			rect.Left = 30;
			rect.Right = 40;
			imageMap.HotSpots.Add (rect);
			imageMap.HotSpotMode = HotSpotMode.Navigate;
			PolygonHotSpot poly = new PolygonHotSpot ();
			poly.AccessKey = "P";
			poly.AlternateText = "Polygon";
			poly.NavigateUrl = "NavigateUrlPoly";
			poly.TabIndex = 2;
			poly.Coordinates = "10,20,30,40,50,60,100,200";
			imageMap.HotSpots.Add (poly);
			string originalHtml = "<img src=\"\" usemap=\"#ImageMap\" /><map name=\"ImageMap\" id=\"ImageMap\">\r\n\t<area shape=\"rect\" coords=\"30,20,40,10\" href=\"NavigateUrlRect\" title=\"Rectangle\" alt=\"Rectangle\" accesskey=\"R\" tabindex=\"1\" /><area shape=\"poly\" coords=\"10,20,30,40,50,60,100,200\" href=\"NavigateUrlPoly\" title=\"Polygon\" alt=\"Polygon\" accesskey=\"P\" tabindex=\"2\" />\r\n</map>";
			string renderedHtml = imageMap.Render ();
			HtmlDiff.AssertAreEqual (originalHtml, renderedHtml, "RenderNavigateShapesTextAssigned");
		}
Ejemplo n.º 11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
            {
                return;
            }

            #region " AdRotator "

            AdRotator1.Height = 100;
            AdRotator1.Width = 100;
            AdRotator1.AdvertisementFile = "AdRotatorControlTestData.xml";
            AdRotator1.BorderColor = Color.Black;
            AdRotator1.BorderStyle = BorderStyle.Solid;
            AdRotator1.BorderWidth = 2;

            #endregion 

            #region " BulletedList "

            //todo: for BulletedList, the third part of the triplet appears to be if the item is enabled.  Could improve Glimpse visualizer for this.
            BulletedList1.Items.Add(new ListItem("Item Zero", "A"));
            BulletedList1.Items.Add(new ListItem("Item One", "B"));
            BulletedList1.Items.Add(new ListItem("Item Two", "C"));
            BulletedList1.Items.Add(new ListItem("Item Three (disabled)", "D"));
            BulletedList1.Items[3].Enabled = false;
            
            #endregion

            #region " Button "

            Button1.Text = "I am Button1";
            Button1.ToolTip = "Button1 Tooltip is here.";
            Button1.Width = 300;
            Button1.Height = 80;
            Button1.BackColor = Color.Red;
            Button1.ForeColor = Color.Blue;

            #endregion 

            #region " Calendar "

            Calendar1.DayNameFormat = DayNameFormat.FirstTwoLetters;
            Calendar1.FirstDayOfWeek = FirstDayOfWeek.Monday;
            Calendar1.Caption = "Super calendar!";
            
            #endregion 

            #region " Checkbox "
            CheckBox1Checked.Checked = true;
            CheckBox1Checked.Text = "This is a checked Checkbox.";
            CheckBox2UnChecked.Checked = false;
            CheckBox2UnChecked.Text = "This is an unchecked Checkbox.";

            #endregion

            #region " CheckboxList "

            CheckBoxList1.Items.Add(new ListItem("Item Zero (default)", "A"));
            CheckBoxList1.Items.Add(new ListItem("Item One (selected)", "B"));
            CheckBoxList1.Items.Add(new ListItem("Item Two (not selected)", "C"));
            CheckBoxList1.Items.Add(new ListItem("Item Three (disabled)", "D"));
            CheckBoxList1.Items[1].Selected = true;
            CheckBoxList1.Items[2].Selected = false;
            CheckBoxList1.Items[3].Enabled = false;
            
            #endregion

            #region " DropDownList "

            DropDownList1.Items.Add(new ListItem("Item Zero (default)", "A"));
            DropDownList1.Items.Add(new ListItem("Item One (selected)", "B"));
            DropDownList1.Items.Add(new ListItem("Item Two (not selected)", "C"));
            DropDownList1.Items.Add(new ListItem("Item Three (disabled)", "D"));
            DropDownList1.Items[1].Selected = true;
            DropDownList1.Items[2].Selected = false;
            DropDownList1.Items[3].Enabled = false;
            
            #endregion

            #region " FileUpload "

            FileUpload1.AllowMultiple = true;
            FileUpload1.Height = 80;
            FileUpload1.Width = 300;
            FileUpload1.ToolTip = "this is a file uploader";

            #endregion

            #region " HiddenField "

            HiddenField1.Value = "this is a hidden field.";

            #endregion

            #region " Hyperlink "

            HyperLink1.ForeColor = Color.Gray;
            HyperLink1.NavigateUrl = "https://github.com/Glimpse/Glimpse";
            HyperLink1.Text = "Go to Glimpse project site!";
            
            #endregion

            #region " Image "

            Image1.ImageUrl = "/Images/logo.jpg";
            Image1.AlternateText = "This is a logo";
            Image1.DescriptionUrl = "this is the description URL... whatever that is.";
            
            #endregion

            #region " ImageButton "

            ImageButton1.ImageUrl = "/Images/logo.jpg";
            ImageButton1.AlternateText = "This is a logo (ImageButton)";
            ImageButton1.DescriptionUrl = "this is the description URL... whatever that is.  (ImageButton)";
            ImageButton1.PostBackUrl = "PopulatedControls.aspx?ImageButtonPostBack=1";

            #endregion

            #region " ImageMap "

            ImageMap1.ImageUrl = "/Images/logo.jpg";
            ImageMap1.HotSpotMode = HotSpotMode.PostBack;
            RectangleHotSpot hotSpot1 = new RectangleHotSpot();
            hotSpot1.PostBackValue = "hotSpot 1";
            hotSpot1.Top = 0;
            hotSpot1.Bottom = 101;
            hotSpot1.Left = 0;
            hotSpot1.Right = 181;
            hotSpot1.NavigateUrl = "PopulatedControls.aspx";
            ImageMap1.HotSpots.Add(hotSpot1);
            RectangleHotSpot hotSpot2 = new RectangleHotSpot();
            hotSpot2.PostBackValue = "hotSpot 2";
            hotSpot2.Top = 0;
            hotSpot2.Bottom = 101;
            hotSpot2.Left = 182;
            hotSpot2.Right = 362;
            hotSpot2.NavigateUrl = "PopulatedControls.aspx";
            ImageMap1.HotSpots.Add(hotSpot2);

            #endregion

            #region " Label "

            Label1.Text = "This is the best label.  Ever.";
            Label1.ForeColor = Color.Orange;
            Label1.Font.Name = "Comic Sans MS";
            Label1.Font.Size = 24;

            #endregion

            #region " LinkButton "

            LinkButton1.PostBackUrl = "PopulatedControls.aspx?LinkButton1Postback=1";
            LinkButton1.Text = "This is a link button";
            LinkButton1.Font.Italic = true;

            #endregion

            #region " ListBox "

            ListBox1.Items.Add(new ListItem("Item Zero (default)", "A"));
            ListBox1.Items.Add(new ListItem("Item One (selected)", "B"));
            ListBox1.Items.Add(new ListItem("Item Two (not selected)", "C"));
            ListBox1.Items.Add(new ListItem("Item Three (disabled)", "D"));
            ListBox1.Items[1].Selected = true;
            ListBox1.Items[2].Selected = false;
            ListBox1.Items[3].Enabled = false;
            ListBox1.BorderColor = Color.Blue;
            ListBox1.BorderStyle = BorderStyle.Dashed;
            ListBox1.BorderWidth = 3;

            #endregion

            #region " Literal "

            Literal1.Text = "<b>This is some literal content</b><pre>OH YEAH!!!" + Environment.NewLine + "This is on the next line.</pre>";

            #endregion

            #region " Localize "

            Localize1.Mode = LiteralMode.Encode;

            #endregion

            #region " MultiView "

            //todo: The MultiView and View controls don't seem to have any sort of visibility into their data.
            MultiView1.ActiveViewIndex = 1; 
            
            #endregion

            #region " Panel "

            Panel1.Width = 400;
            Panel1.Height = 200;
            Panel1.BorderColor = Color.Green;
            Panel1.BorderWidth = 5;
            Panel1.BorderStyle = BorderStyle.Inset;

            var panel1TextBox1 = new TextBox();
            panel1TextBox1.ID = "panel1TextBox1";
            panel1TextBox1.Text = "This is the panel1TextBox1 text value.";
            panel1TextBox1.Width = 300;
            Panel1.Controls.Add(panel1TextBox1);

            #endregion

            #region " PlaceHolder "
            
            var placeHolder1TextBox1 = new TextBox();
            placeHolder1TextBox1.ID = "placeHolder1TextBox1";
            placeHolder1TextBox1.Text = "This is the placeHolder1TextBox1 text value.";
            placeHolder1TextBox1.Width = 500;
            PlaceHolder1.Controls.Add(placeHolder1TextBox1);

            #endregion

            #region " RadioButton "

            RadioButton1.Checked = true;
            RadioButton2.Checked = false;
            RadioButton1.Text = "This is RadioButton1!  The initial value is checked.";
            RadioButton2.Text = "This is RadioButton2!  The initial value is not checked.";
            RadioButton3.Text = "This is RadioButton3!  The initial value is not specified.";
            
            #endregion

            #region " RadioButtonList "

            RadioButtonList1.Items.Add(new ListItem("Item Zero (default)", "A"));
            RadioButtonList1.Items.Add(new ListItem("Item One (selected)", "B"));
            RadioButtonList1.Items.Add(new ListItem("Item Two (not selected)", "C"));
            RadioButtonList1.Items.Add(new ListItem("Item Three (disabled)", "D"));

            RadioButtonList1.Items[1].Selected = true;
            RadioButtonList1.Items[2].Selected = false;
            RadioButtonList1.Items[3].Enabled = false;
            RadioButtonList1.BorderColor = Color.Gray;
            RadioButtonList1.BorderStyle = BorderStyle.Outset;
            RadioButtonList1.BorderWidth = 2;

            #endregion

            #region " Substitution "

            Substitution1.Visible = true;

            #endregion

            #region " Table "

            Table1.Rows.Add(TableHeaderRowFromStringArray(new string[] { "Column 1 Header", "Column 2 Header", "Column 3 Header" }));
            Table1.Rows.Add(TableRowFromStringArray(new string[] { "Field1 A", "Field2", "Field3" }));
            Table1.Rows.Add(TableRowFromStringArray(new string[] { "Field1 B", "Field2", "Field3" }));
            Table1.Rows.Add(TableRowFromStringArray(new string[] { "Field1 C", "Field2", "Field3" }));
            
            #endregion

            #region " Textbox "

            TextBox1.Text = "This is a text box control.";
            TextBox1.ReadOnly = true;

            #endregion

            #region " View "

            var View1Label = new Label();
            View1Label.Text = "This is the label inside the view...  I am invisible because my parent View is supposed to be in a MultiView.";
            View1Label.Width = 100;
            View1.Controls.Add(View1Label);

            #endregion

            #region " Wizard "

            Wizard1.BackColor = Color.Honeydew;
            WizardStep1.AllowReturn = true;
            WizardStep2.AllowReturn = true;
            var WizardStep1TextBox1 = new TextBox();
            WizardStep1TextBox1.Text = "This is Wizard step 0 checkbox 1.";
            WizardStep1.Controls.Add(WizardStep1TextBox1);
            var WizardStep2TextBox1 = new TextBox();
            WizardStep2TextBox1.Text = "This is Wizard step 1 checkbox 1.";
            WizardStep2.Controls.Add(WizardStep2TextBox1);
            Wizard1.ActiveStepIndex = 0;

            #endregion

            #region " Xml "
            //todo: need to create an XSLT or else this will crash BrowserLink in VS2013.
            

            #endregion

            #region " HtmlButton "
            
            HtmlButton1.Value = "I am Html Button1";

            #endregion

            #region " HtmlReset "

            HtmlReset1.Value = "I am Html Reset1";

            #endregion

            #region " HtmlSubmit "

            HtmlSubmit1.Value = "I am Html Submit1";

            #endregion

            #region " HtmlText "

            HtmlText1.Value = "I am Html Text1";
            HtmlText1.Size = 100;

            #endregion

            #region " Html Input File "

            HtmlFile1.Accept = "text/xml";

            #endregion

            #region " HtmlPassword "

            HtmlPassword1.Size = 200;
            HtmlPassword1.Value = "MyVoiceIsMyPassportVerifyMe";

            #endregion

            #region " Html Input Checkbox "

            HtmlCheckbox1.Checked = true;
            HtmlCheckbox1.Name = "HtmlCheckbox1Name";

            #endregion

            #region " Html Input Radio "

            HtmlRadio1.Checked = true;
            HtmlRadio1.Name = "HtmlRadio1Name";

            #endregion

            #region " Html Input Hidden "

            HtmlHidden1.Value = "This is so hidden right now...";
            HtmlHidden1.Name = "HtmlHidden1Name";

            #endregion

            #region " Html Textarea "

            HtmlTextArea1.Value = "This is some multiline text.\nThis is line 2.";
            HtmlTextArea1.Name = "HtmlTextArea1Name";

            #endregion

            #region " Html Table "

            var htmlTableRow1 = new System.Web.UI.HtmlControls.HtmlTableRow();
            var htmlTableRow1Cell1 = new System.Web.UI.HtmlControls.HtmlTableCell();
            htmlTableRow1Cell1.InnerText = "Cell1";
            htmlTableRow1Cell1.BgColor = "green";
            var htmlTableRow1Cell2 = new System.Web.UI.HtmlControls.HtmlTableCell();
            htmlTableRow1Cell2.InnerText = "Cell2";
            htmlTableRow1Cell2.BgColor = "pink";
            htmlTableRow1.Cells.Add(htmlTableRow1Cell1);
            htmlTableRow1.Cells.Add(htmlTableRow1Cell2);
            HtmlTable.Rows.Add(htmlTableRow1);
            HtmlTable.Border = 1;
            HtmlTable.BorderColor = "gray";
            
            #endregion

            #region " Html Image "

            HtmlImage1.Src = "~/Images/orderedList0.png";
            HtmlImage1.Alt = "This is a zero picture.  Sweet!";

            #endregion

            #region " Html Select "

            HtmlSelect1.Items.Add(new ListItem("Item Zero (default)", "A"));
            HtmlSelect1.Items.Add(new ListItem("Item One (selected)", "B"));
            HtmlSelect1.Items.Add(new ListItem("Item Two (not selected)", "C"));
            HtmlSelect1.Items.Add(new ListItem("Item Three (disabled)", "D"));
            HtmlSelect1.Items[1].Selected = true;
            HtmlSelect1.Items[2].Selected = false;
            HtmlSelect1.Items[3].Enabled = false;

            #endregion

            #region " Html Horizontal Rule "

            horizontalRule1.InnerText = "Server side Horizontal Rules are the wave of the future.";
            horizontalRule1.Style.Add(HtmlTextWriterStyle.Color, "red");
            horizontalRule1.EnableViewState = true;


            #endregion

            #region " Html Div "

            HtmlDiv1.InnerText = "This is some text inside this server-side div.";
            HtmlDiv1.EnableViewState = true;

            #endregion


            #region " Chart "

            Chart1.Series["Series1"].Points.DataBindY(PopulatedControls.GetSmallSampleNumericData());
            Chart1.BackColor = Color.BlanchedAlmond;
            System.Diagnostics.Debug.Print(Chart1.ViewStateMode.ToString());

            #endregion


        }
Ejemplo n.º 12
0
 public void HotSpotCollection_RemoveAt()
 {
     HotSpotCollection spots = new HotSpotCollection();
     CircleHotSpot circle1 = new CircleHotSpot();
     spots.Add(circle1);
     RectangleHotSpot rect = new RectangleHotSpot();
     spots.Add(rect);
     CircleHotSpot circle2 = new CircleHotSpot();
     spots.Add(circle2);
     Assert.AreEqual(3, spots.Count, "BeforeRemoveAt");
     spots.RemoveAt(1);
     Assert.AreEqual(2, spots.Count, "AfterRemoveAt");
     Assert.AreEqual(circle1.ToString(), spots[0].ToString(), "AfterRemoveAt");
     Assert.AreEqual(circle2.ToString(), spots[1].ToString(), "AfterRemoveAt");
 }
Ejemplo n.º 13
0
 public void RectangleHotSpot_ToString()
 {
     RectangleHotSpot rect = new RectangleHotSpot();
     Assert.AreEqual("RectangleHotSpot", rect.ToString(), "After-ToString");
 }