示例#1
0
        protected override WindowContent ParseContent(SystemWindow sw)
        {
            SystemListBox slb = SystemListBox.FromSystemWindow(sw);
            int           c   = slb.Count;

            string[] values = new string[c];
            for (int i = 0; i < c; i++)
            {
                values[i] = slb[i];
            }
            return(new ListContent("ListBox", slb.SelectedIndex, slb.SelectedItem, values));
        }
示例#2
0
        protected void ImageMap1_Click(object sender, ImageMapEventArgs e)
        {
            //This is the image click function for the male front.
            string malefrontregionname = e.PostBackValue;

            switch (e.PostBackValue)
            {
            case "Head":
                partlabel.Text        = "Symptoms Of The Head";
                SystemListBox.Visible = true;
                break;

            case "Neck":
                partlabel.Text        = "Symptoms Of The Neck";
                SystemListBox.Visible = true;
                break;

            case "Chest":
                partlabel.Text        = "Symptoms Of The Chest";
                SystemListBox.Visible = true;
                break;

            case "Stomach":
                partlabel.Text        = "Symptoms Of The Stomach";
                SystemListBox.Visible = true;
                break;

            case "RightHand":
                partlabel.Text        = "Symptoms Of The Arm";
                SystemListBox.Visible = true;
                break;

            case "LeftHand":
                partlabel.Text        = "Symptoms Of The Arm";
                SystemListBox.Visible = true;
                break;

            case "LeftPalm":
                partlabel.Text        = "Symptoms Of The Palm";
                SystemListBox.Visible = true;
                break;

            case "RightPalm":
                partlabel.Text        = "Symptoms Of The Palm";
                SystemListBox.Visible = true;
                break;

            case "LeftShoulder":
                partlabel.Text        = "Symptoms Of The Shoulder";
                SystemListBox.Visible = true;
                break;

            case "RightShoulder":
                partlabel.Text        = "Symptoms Of The Shoulder";
                SystemListBox.Visible = true;
                break;

            case "Pelvis":
                partlabel.Text        = "Symptoms Of The Pelvis";
                SystemListBox.Visible = true;
                break;

            case "UpperLeftThigh":
                partlabel.Text        = "Symptoms Of The Hip";
                SystemListBox.Visible = true;
                break;

            case "UpperRightThigh":
                partlabel.Text        = "Symptoms Of The Hip";
                SystemListBox.Visible = true;
                break;

            case "LeftLeg":
                partlabel.Text        = "Symptoms Of The Leg";
                SystemListBox.Visible = true;
                break;

            case "RightLeg":
                partlabel.Text        = "Symptoms Of The Leg";
                SystemListBox.Visible = true;
                break;

            case "LeftFoot":
                partlabel.Text        = "Symptoms Of The Feet";
                SystemListBox.Visible = true;
                break;

            case "RightFoot":
                partlabel.Text        = "Symptoms Of The Feet";
                SystemListBox.Visible = true;
                break;
            }
            Online_Doctor.Connectivity sData = new Online_Doctor.Connectivity();

            SqlDataReader dr = sData.GetBPSymptoms(malefrontregionname);

            if (dr.HasRows)
            {
                SystemListBox.DataSource = dr;
                SystemListBox.DataBind();
            }
            else
            {
                SystemListBox.Items.Clear();
                SystemListBox.Items.Add("No Data Available");
            }
            dr.Close();
        }
示例#3
0
 internal override bool CanParseContent(SystemWindow sw)
 {
     return(SystemListBox.FromSystemWindow(sw) != null);
 }
示例#4
0
        internal override WindowContent ParsePreviewContent(SystemWindow sw)
        {
            SystemListBox slb = SystemListBox.FromSystemWindow(sw);

            return(new ListContent("ListBox", slb.SelectedIndex, slb.SelectedItem, new string[0]));
        }