Skip to content

Commit

Permalink
Merge pull request #179 from kzi-nastava/test/csv
Browse files Browse the repository at this point in the history
[Update] create for exam slot
  • Loading branch information
darinkaloncar authored Apr 2, 2024
2 parents ba576d3 + 046d629 commit e1893be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions LangLang/View/ExamSlotGUI/ExamSlotCreateWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand All @@ -70,9 +71,11 @@ private void examSlotCreateBtn_Click(object sender, RoutedEventArgs e)
examSlotsController.Add(ExamSlot.ToExamSlot(), courseController);
Close();
}
}*/
Close();

}

}
else
{
Expand Down

0 comments on commit e1893be

Please sign in to comment.