Пример #1
0
        private void editarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SpecialityViewModel speciality = getViewModelfromRowData();

            Frm_DetailSpeciality frm_Details = new Frm_DetailSpeciality();

            frm_Details.specialityViewModel = speciality;
            frm_Details.frmmFather          = this;
            frm_Details.isEditable          = true;
            frm_Details.Show();
        }
Пример #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();
        }