Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }