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(); }
public AddWorkloadScreen(AddWorkloadManager manager) { InitializeComponent(); DataContext = manager; manager.OnExit = Close; }