예제 #1
0
        private void GET_TAB_GET_Button_Click(object sender, RoutedEventArgs e)
        {
            HttpWebOperation httpGet = new HttpWebOperation();
            List<String> result = httpGet.getStudentInfoByGet(URL_TEXTBOX.Text,GET_TAB_ID_No_TEXTBOX.Text);
            string outputString = "";

            CheckBox[] cb = new CheckBox[4];
            cb[0] = GET_TAB_CheckBox_Name;
            cb[1] = GET_TAB_CheckBox_Gender;
            cb[2] = GET_TAB_CheckBox_Major;
            cb[3] = GET_TAB_CheckBox_Email_Address;

            for (int i = 0; i < cb.Length; i++)
            {
                if (cb[i].IsChecked == true)
                    outputString += result[i] + "\t";
            }

            GET_TAB_RESULT_TEXTBOX.Text += outputString + "\n";
        }