|
@@ -58,7 +58,13 @@ namespace PDK_Concert.Pages
|
|
};
|
|
};
|
|
Classes.DataBaseClass.connect.RehearsalSchedule.Add(rehearsalSchedule);
|
|
Classes.DataBaseClass.connect.RehearsalSchedule.Add(rehearsalSchedule);
|
|
Classes.DataBaseClass.connect.SaveChanges();
|
|
Classes.DataBaseClass.connect.SaveChanges();
|
|
- listRehearsal.ItemsSource = Classes.DataBaseClass.connect.RehearsalSchedule.Where(x => x.IDSchedule == ID).ToList();
|
|
|
|
|
|
+ schedules = Classes.DataBaseClass.connect.RehearsalSchedule.Where(x => x.IDSchedule == ID).ToList();
|
|
|
|
+ listRehearsal.ItemsSource = schedules;
|
|
|
|
+ if (schedules.Count > 0)
|
|
|
|
+ {
|
|
|
|
+ not.Visibility = Visibility.Collapsed;
|
|
|
|
+ listRehearsal.Visibility = Visibility.Visible;
|
|
|
|
+ }
|
|
time.Text = "";
|
|
time.Text = "";
|
|
}
|
|
}
|
|
else
|
|
else
|