|
@@ -39,7 +39,7 @@ namespace PDK_Concert.Pages
|
|
{
|
|
{
|
|
RehearsalDate1 = (DateTime)date.SelectedDate
|
|
RehearsalDate1 = (DateTime)date.SelectedDate
|
|
};
|
|
};
|
|
- if (notAdd.IsChecked == false && string.IsNullOrWhiteSpace(time.Text))
|
|
|
|
|
|
+ if (notAdd.IsChecked == true || !string.IsNullOrWhiteSpace(time.Text))
|
|
{
|
|
{
|
|
if (notAdd.IsChecked == false)
|
|
if (notAdd.IsChecked == false)
|
|
{
|
|
{
|
|
@@ -65,7 +65,8 @@ namespace PDK_Concert.Pages
|
|
}
|
|
}
|
|
Classes.DataBaseClass.connect.RehearsalDate.Add(rehearsalDate);
|
|
Classes.DataBaseClass.connect.RehearsalDate.Add(rehearsalDate);
|
|
Classes.DataBaseClass.connect.SaveChanges();
|
|
Classes.DataBaseClass.connect.SaveChanges();
|
|
-
|
|
|
|
|
|
+ MessageBox.Show("Репетиция успешно добавлена", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
|
|
+ Classes.FrameClass.menuFrame.Navigate(new RehearsalSchedulePage(logined));
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|