protected void RestartButton_Click(object sender, EventArgs e)
 {
     MultiView1.ActiveViewIndex = 0;
     i = 0;
     backEndResults        = 0;
     frontEndResults       = 0;
     RestartButton.Visible = false;
     RBL.ClearSelection();
 }
        protected void PreviousButton_Click(object sender, EventArgs e)
        {
            if (RBL.SelectedValue == "fE")
            {
                frontEndResults--;
            }

            else if (RBL.SelectedValue == "bE")
            {
                backEndResults--;
            }


            if (MultiView1.ActiveViewIndex != 1)
            {
                i--;
            }


            MultiView1.ActiveViewIndex--;

            if (MultiView1.ActiveViewIndex == 0)
            {
                previousButton.Visible = false;
                nextButton.Visible     = false;
                RBL.Visible            = false;
            }

            else if (MultiView1.ActiveViewIndex == 8)
            {
                previousButton.Visible = true;
                nextButton.Visible     = false;
                RBL.Visible            = true;
                finishedButton.Visible = true;
            }

            else
            {
                previousButton.Visible = true;
                nextButton.Visible     = true;
                finishedButton.Visible = false;
            }


            RBL.Items[0].Text = theChoices.choice1Array[i];

            RBL.Items[1].Text = theChoices.choice2Array[i];


            RBL.ClearSelection();
        }
        protected void NextButton_Click(object sender, EventArgs e)

        {
            if (Page.IsValid)
            {
                if (i < theChoices.choice1Array.Length)
                {
                    i++;
                }


                MultiView1.ActiveViewIndex++;

                if (MultiView1.ActiveViewIndex == 8)
                {
                    nextButton.Visible = false;

                    finishedButton.Visible = true;
                }

                else
                {
                    previousButton.Visible = true;
                    nextButton.Visible     = true;
                }



                RBL.Items[0].Text = theChoices.choice1Array[i];

                RBL.Items[1].Text = theChoices.choice2Array[i];



                if (RBL.SelectedValue == "fE")
                {
                    frontEndResults++;
                }

                else if (RBL.SelectedValue == "bE")
                {
                    backEndResults++;
                }


                RBL.ClearSelection();
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 图幅号经纬度
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonTFHToLB_Click(object sender, EventArgs e)
        {
            MapScaleObject scaleObj = null;
            double         LTL, LTB, RBL, RBB;
            string         tfh = this.textBoxTFH.Text.Trim();

            TFHHelper.GetLTRBPoints(tfh, out scaleObj, out LTL, out LTB, out RBL, out RBB);
            if (scaleObj != null)
            {
                MessageBox.Show(string.Format("比例尺:{0}  LTL:{1}  LTB:{2}  RBL:{3}  RBB:{4}", scaleObj.Label, LTL.ToString(), LTB.ToString(), RBL.ToString(), RBB.ToString()));
            }
            else
            {
                MessageBox.Show(string.Format("图幅号[{0}]无法解析!", tfh));
            }
        }
Esempio n. 5
0
 public override Path Clone()
 {
     return(new RoundedRectangle(W.Clone(), H.Clone(), RTL.Clone(), RTR.Clone(), RBL.Clone(), RBR.Clone()));
 }