示例#1
0
        private void AddNewWorkloadHandler()
        {
            SetWaiting(true);
            var manager = new AddWorkloadManager(_selectedStudyYear)
            {
                SetWaiting = isBusy => SetWaiting(isBusy)
            };
            var dialog = new AddWorkloadScreen(manager);

            dialog.Closed += (sender, args) =>
            {
                RefreshTable();
            };
            dialog.Show();
        }
示例#2
0
 public AddWorkloadScreen(AddWorkloadManager manager)
 {
     InitializeComponent();
     DataContext    = manager;
     manager.OnExit = Close;
 }