private Recipe_DetailsModel getViewModelfromRowData() { Recipe_DetailsModel recipes = new Recipe_DetailsModel(); foreach (DataGridViewRow dataRow in DGVMedicalsRecipes.SelectedRows) { recipes = DataRowViewToViewModel.convertRecipeDetailsModel(dataRow); } return(recipes); }
private MedicHistoryViewModel getViewModelfromRowData() { MedicHistoryViewModel medHis = new MedicHistoryViewModel(); foreach (DataGridViewRow dataRow in dgvMedicHistory.SelectedRows) { medHis = DataRowViewToViewModel.convertMedicHistoryViewModel(dataRow); } return(medHis); }
private PatientShowViewModel getViewModelfromDataRow() { PatientShowViewModel medicHisto = new PatientShowViewModel(); foreach (DataGridViewRow dataRow in DGVShowPatient.SelectedRows) { medicHisto = DataRowViewToViewModel.convertPatientShowViewModel(dataRow); } return(medicHisto); }
private SpecialityViewModel getViewModelfromRowData() { SpecialityViewModel speciality = new SpecialityViewModel(); foreach (DataGridViewRow dataRow in dgvEspecialidades.SelectedRows) { speciality = DataRowViewToViewModel.convertSpecialityViewModel(dataRow); } return(speciality); }
private void verDetalleToolStripMenuItem_Click(object sender, EventArgs e) { UserViewModel user = new UserViewModel(); foreach (DataGridViewRow dataRow in dgvUsers.SelectedRows) { user = DataRowViewToViewModel.convertUserViewModel(dataRow); } FUserDetails fUserDetail = new FUserDetails(); fUserDetail.user = user; fUserDetail.Show(); }
private void verDetalleToolStripMenuItem_Click(object sender, EventArgs e) { SpecialityViewModel speciality = new SpecialityViewModel(); foreach (DataGridViewRow dataRow in dgvEspecialidades.SelectedRows) { speciality = DataRowViewToViewModel.convertSpecialityViewModel(dataRow); } Frm_DetailSpeciality frm_Details = new Frm_DetailSpeciality(); frm_Details.specialityViewModel = speciality; frm_Details.frmmFather = this; frm_Details.isEditable = false; frm_Details.Show(); }