public ActivityDetail(string id) { InitializeComponent(); this.CenterToScreen(); activityToEdit = ActivityDTO.getActivities(new Dictionary <string, string> { { "id", id } })[0]; setFields(); setLabels(); }
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 ))); }