Esempio n. 1
0
        private SpecialityViewModel getViewModelfromRowData()
        {
            SpecialityViewModel speciality = new SpecialityViewModel();

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

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