private void ReservationsListRefresh()
        {
            TableReservations.Clear();
            if (!string.IsNullOrEmpty(FirstTime) && !string.IsNullOrEmpty(LastTime) && !string.IsNullOrEmpty(DateText))
            {
                _availabilityChecker.SetTablesAvailabilities(FirstTime, LastTime, DateText);

                if (SelectedItemTable != null)
                {
                    TableReservations.AddItems(_availabilityChecker.GetDaylyReservationsForTable(DateText, SelectedItemTable.Number));
                }
            }
        }
Esempio n. 2
0
        private void OnTableSelectionChangedCommandExecute()
        {
            TableReservations.Clear();
            if (SelectedItemTable != null)
            {
                var tableChecker = new TablesAvailabilityChecker(Tables);
                var reservations = tableChecker.GetTodayReservationsForTable(SelectedItemTable.Number);

                foreach (var reserv in reservations)
                {
                    TableReservations.Add(reserv);
                }
            }
        }