private void SetTimeConstraintButton_OnClick(object sender, RoutedEventArgs e) { if (_windowStateSummary == null) { _windowStateSummary = new Window_StateSummary(_subjectModels.GetSelectedSlots(), _newListOfTimetables); } _windowStateSummary.ShowDialog(); if (_windowStateSummary.UserClickedDone) { UpdateGUI(_windowStateSummary.RemainingTimetables); } }
private void SetTimeConstraintButton_OnClick(object sender, RoutedEventArgs e) { if (_windowStateSummary == null) { _windowStateSummary = new Window_StateSummary(_inputSlots.GetSlotsOf(SelectSubjectPanel.UIDofSelectedSlots).ToList(), _raw); } _windowStateSummary.ShowDialog(); if (_windowStateSummary.UserClickedDone) { _predicates = _windowStateSummary.Predicates; UpdateGUI(RunPermutation(_inputSlots.GetSlotsOf(SelectSubjectPanel.UIDofSelectedSlots))); } }