Esempio n. 1
0
        private Recipe_DetailsModel getViewModelfromRowData()
        {
            Recipe_DetailsModel recipes = new Recipe_DetailsModel();

            foreach (DataGridViewRow dataRow in DGVMedicalsRecipes.SelectedRows)
            {
                recipes = DataRowViewToViewModel.convertRecipeDetailsModel(dataRow);
            }
            return(recipes);
        }
Esempio n. 2
0
        private MedicHistoryViewModel getViewModelfromRowData()
        {
            MedicHistoryViewModel medHis = new MedicHistoryViewModel();

            foreach (DataGridViewRow dataRow in dgvMedicHistory.SelectedRows)
            {
                medHis = DataRowViewToViewModel.convertMedicHistoryViewModel(dataRow);
            }
            return(medHis);
        }
Esempio n. 3
0
        private PatientShowViewModel getViewModelfromDataRow()
        {
            PatientShowViewModel medicHisto = new PatientShowViewModel();

            foreach (DataGridViewRow dataRow in DGVShowPatient.SelectedRows)
            {
                medicHisto = DataRowViewToViewModel.convertPatientShowViewModel(dataRow);
            }
            return(medicHisto);
        }
Esempio n. 4
0
        private SpecialityViewModel getViewModelfromRowData()
        {
            SpecialityViewModel speciality = new SpecialityViewModel();

            foreach (DataGridViewRow dataRow in dgvEspecialidades.SelectedRows)
            {
                speciality = DataRowViewToViewModel.convertSpecialityViewModel(dataRow);
            }

            return(speciality);
        }
Esempio n. 5
0
        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();
        }
Esempio n. 6
0
        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();
        }