From 046d62976c7aa619878a9dfe0eba932ffb0a10e3 Mon Sep 17 00:00:00 2001 From: DusicaPesic <130140285+DusicaPesic@users.noreply.github.com> Date: Tue, 2 Apr 2024 23:58:13 +0200 Subject: [PATCH] [Update] Create for exam slot --- LangLang/View/ExamSlotGUI/ExamSlotCreateWindow.xaml.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/LangLang/View/ExamSlotGUI/ExamSlotCreateWindow.xaml.cs b/LangLang/View/ExamSlotGUI/ExamSlotCreateWindow.xaml.cs index ed49f252..955dc3be 100644 --- a/LangLang/View/ExamSlotGUI/ExamSlotCreateWindow.xaml.cs +++ b/LangLang/View/ExamSlotGUI/ExamSlotCreateWindow.xaml.cs @@ -58,9 +58,10 @@ private void examSlotCreateBtn_Click(object sender, RoutedEventArgs e) ExamSlot.CourseId = SelectedCourse.Id; bool added = examSlotsController.Add(ExamSlot.ToExamSlot(), courseController); + /* if (!added) { - examSlotsController.Add(ExamSlot.ToExamSlot(), courseController); + //examSlotsController.Add(ExamSlot.ToExamSlot(), courseController); MessageBox.Show("Choose another exam date or time."); } @@ -70,9 +71,11 @@ private void examSlotCreateBtn_Click(object sender, RoutedEventArgs e) examSlotsController.Add(ExamSlot.ToExamSlot(), courseController); Close(); - } + }*/ + Close(); + } - + } else {