public static async Task <EditModalWindow> Create(MedicalRecordViewModel model)
        {
            EditModalWindow modal = new EditModalWindow(model);
            await modal.InitializeComboBox();

            await modal.InitializeData();

            return(modal);
        }
Ejemplo n.º 2
0
        public override async void Edit(object selectedItem)
        {
            DataRowView            item  = (DataRowView)selectedItem;
            MedicalRecordViewModel model = Mapping.Mapper.Map <MedicalRecordViewModel>(item);

            EditModalWindow modalWindow = await EditModalWindow.Create(model);

            _ = modalWindow.ShowDialog();
            DataGridControl.InformAboutStatus(modalWindow.OperationStatus);
        }