public async override void Details(object selectedItem)
        {
            DataRowView item   = (DataRowView)selectedItem;
            Doctor      doctor = Mapping.Mapper.Map <Doctor>(item);

            doctor = await doctorService.GetByPrimaryKey(doctor);

            DetailsModalWindow modal = await DetailsModalWindow.Create(Mapping.Mapper.Map <DoctorViewModel>(doctor));

            _ = modal.ShowDialog();
            DataGridControl.InformAboutStatus(modal.OperationStatus);
        }
Beispiel #2
0
        public static async Task <DetailsModalWindow> Create(DoctorViewModel doctor)
        {
            DetailsModalWindow modal = new DetailsModalWindow(doctor);

            modal.doctorUtil = new DoctorClinicAndMedicalTitleUtil(modal.ClinicsListBox, modal.TitlesListBox, modal.doctor)
            {
                CurrentDictionary = modal.CurrentDictionary.MergedDictionaries[0]
            };
            await modal.SetExistingData();

            return(modal);
        }