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