示例#1
0
        public InstructorDetail(string id)
        {
            InitializeComponent();
            this.CenterToScreen();

            instructorToEdit = InstructorDTO.getInstructors(new Dictionary <string, string> {
                { "id", id }
            })[0];
            setFields();
            setLabels();
        }
示例#2
0
 private bool AddRelatorio()
 {
     return(ClassDTO.AddNewClass(new Class(
                                     0,
                                     this.radioControl["dig"],
                                     this.radioControl["lei"],
                                     this.radioControl["rec"],
                                     this.radioControl["atv"],
                                     this.radioControl["int"],
                                     StudentsDTO.getStudents(new Dictionary <string, string> {
         { "id", cmbNomeAluno.SelectedValue.ToString() }
     })[0],
                                     InstructorDTO.getInstructors(new Dictionary <string, string> {
         { "id", cmbNomeMonitor.SelectedValue.ToString() }
     })[0],
                                     ActivityDTO.getActivities(new Dictionary <string, string> {
         { "id", cmbActivities.SelectedValue.ToString() }
     })[0],
                                     dtpRelCreated.Value.Date,
                                     txtObs.Text,
                                     txtObsInteressante.Text
                                     )));
 }