Exemplo n.º 1
0
        internal void SetAppointmentSuggestions(List <DateTime> possibleTimes)
        {
            if (possibleTimes.Count > 0)
            {
                List <AppointmentSuggestion> suggestions = new List <AppointmentSuggestion>();

                foreach (DateTime appointmentTime in possibleTimes)
                {
                    AppointmentSuggestion suggestion = new AppointmentSuggestion();
                    suggestion.RoomNumber = Doctor.CurrentRoomNumber;
                    suggestion.StartTime  = appointmentTime;
                    suggestions.Add(suggestion);
                }
                this.PossibleAppointments = new ObservableCollection <AppointmentSuggestion>(suggestions);
                this.SelectedAppointment  = this.PossibleAppointments[0];
            }
            else
            {
                this.PossibleAppointments = null;
                this.SelectedAppointment  = null;
            }
        }
        internal void SetAppointmentSuggestions(List<DateTime> possibleTimes)
        {
            if (possibleTimes.Count > 0)
            {
                List<AppointmentSuggestion> suggestions = new List<AppointmentSuggestion>();

                foreach (DateTime appointmentTime in possibleTimes)
                {
                    AppointmentSuggestion suggestion = new AppointmentSuggestion();
                    suggestion.RoomNumber = Doctor.CurrentRoomNumber;
                    suggestion.StartTime = appointmentTime;
                    suggestions.Add(suggestion);
                }
                this.PossibleAppointments = new ObservableCollection<AppointmentSuggestion>(suggestions);
                this.SelectedAppointment = this.PossibleAppointments[0];
            }
            else
            {
                this.PossibleAppointments = null;
                this.SelectedAppointment = null;
            }
        }