コード例 #1
0
        public async void DeleteDepartments()
        {
            object result = await DialogHost.Show(new DeleteMessageBox(), "RootDialog");

            if (result.Equals(true))
            {
                Hospital.DeleteDepartment(DepartmentId);
                HospitalDB.DeleteDepartment(DepartmentId);
                Home.ViewModel.Content = new DepartmentsViewModel();
            }
        }