Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            srGuardaDatosCorrectivos.wsGuardaDatosCorrectivosSoapClient auxSwGuardarDatosAlumnos = new srGuardaDatosCorrectivos.wsGuardaDatosCorrectivosSoapClient();
            srGuardaDatosCorrectivos.Medida_Correctiva auxAlumno = new srGuardaDatosCorrectivos.Medida_Correctiva();

            if (String.IsNullOrEmpty(auxSwGuardarDatosAlumnos.buscarMedida_Correctiva(this.txtCodMC.Text).Cod_MC))
            {
                MessageBox.Show("Medida Correctiva no existe", "Mensaje Sistema");
            }

            else
            {
                auxSwGuardarDatosAlumnos.eliminarMedidaCorrectiva(txtCodMC.Text);
                MessageBox.Show("MedidaCorrectiva eliminada", "Mensaje Sistema");
                Limpiar();
                this.txtCodMC.Focus();
            }
        }