Пример #1
0
        public void Set(Survey survey)
        {
            _ratingQuestions.Clear();
            _essayQuestions.Clear();

            if (survey != null)
            {
                foreach (string question in survey.RatingQuestions.Select(q => q.Text))
                {
                    _ratingQuestions.Add(question);
                }
                foreach (string question in survey.EssayQuestions.Select(q => q.Text))
                {
                    _essayQuestions.Add(question);
                }
            }
        }
Пример #2
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Survey newFact = new Survey(memento);

                return newFact;
            }
Пример #3
0
 // Business constructor
 public SessionEvaluation(
     Schedule schedule
     ,Survey survey
     )
 {
     InitializeResults();
     _schedule = new PredecessorObj<Schedule>(this, GetRoleSchedule(), schedule);
     _survey = new PredecessorObj<Survey>(this, GetRoleSurvey(), survey);
 }
Пример #4
0
 // Fields
 // Results
 // Business constructor
 public Conference__conferenceSurvey(
     Conference conference
     ,IEnumerable<Conference__conferenceSurvey> prior
     ,Survey value
     )
 {
     InitializeResults();
     _conference = new PredecessorObj<Conference>(this, GetRoleConference(), conference);
     _prior = new PredecessorList<Conference__conferenceSurvey>(this, GetRolePrior(), prior);
     _value = new PredecessorObj<Survey>(this, GetRoleValue(), value);
 }
Пример #5
0
 // Business constructor
 public ConferenceSessionSurvey(
     Conference conference
     ,Survey sessionSurvey
     ,IEnumerable<ConferenceSessionSurvey> prior
     )
 {
     InitializeResults();
     _conference = new PredecessorObj<Conference>(this, GetRoleConference(), conference);
     _sessionSurvey = new PredecessorObj<Survey>(this, GetRoleSessionSurvey(), sessionSurvey);
     _prior = new PredecessorList<ConferenceSessionSurvey>(this, GetRolePrior(), prior);
 }
 public SurveyReadOnlyViewModel(Survey survey)
 {
     _survey = survey;
 }