Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            localhost.Service1 service = new localhost.Service1();
            bool isValidUpload;
            bool isValidUploadSpecified;
            bool isValidTeacherResult;
            bool isValidTeacherResultSpecified;

            service.isValidTeacher(textBox1.Text, out isValidTeacherResult, out isValidTeacherResultSpecified);
            if (isValidTeacherResult)
            {
                service.UploadReport(textBox2.Text, textBox1.Text, label3.Text, comboBox1.Text, textBox4.Text, out isValidUpload, out isValidUploadSpecified);
                if (isValidUpload)
                {
                    MessageBox.Show("Report has been uploaded");
                }
                else
                {
                    MessageBox.Show("Invalid Information");
                }
            }
            else
            {
                MessageBox.Show("Invalid Teacher");
            }
        }