示例#1
0
        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();
        }
示例#2
0
        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();
        }