Пример #1
0
        private void actualizarNota(object sender, SelectionChangedEventArgs args)
        {
            int numTarea = (sender as ComboBox).SelectedIndex;

            if (numTarea != -1)
            {
                string idTareaSeleccionada = listaTareasAsignatura.ElementAt(numTarea).id;

                WebService   webService = new WebService();
                NotaResponse response   = webService.getNotaTarea(this.idAlumno, idTareaSeleccionada);

                if (response.estado == 1)
                {
                    txtNotaPerfilAlumno.Text = response.notas.ElementAt(0).puntuacion;
                }
                else
                {
                    txtNotaPerfilAlumno.Text = "-";
                }
            }
            else
            {
                txtNotaPerfilAlumno.Text = "";
            }
        }