private void Add() { SetWaiting(true); var manager = new AddSpecialityManager { SetWaiting = isBusy => SetWaiting(isBusy) }; var dialog = new AddSpecialityScreen(manager); dialog.Closed += async(sender, args) => { Refresh(); }; dialog.Show(); }
private void Edit() { if (SelectedSpeciality == null) { return; } SetWaiting(true); var addPaymentManager = new AddSpecialityManager(SelectedSpeciality); addPaymentManager.SetWaiting = isBusy => SetWaiting(isBusy); var addPaymentDialog = new AddSpecialityScreen(addPaymentManager); addPaymentDialog.Closed += async(sender, args) => { Refresh(); }; addPaymentDialog.Show(); }