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