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