public SurveyTabControlViewModel(CustomSurveysObject survey)
 {
     this.survey       = survey.survey;
     this.surveyId     = survey.survey.id;
     this.phaseNumber  = survey.survey.phaseNumber;
     this.strDate      = "12/12/2020";
     this.hostId       = survey.survey.host.id;
     this.answersCount = survey.answersCount;
     if (this.survey.host.online)
     {
         this.status = "Online";
     }
     else
     {
         this.status = "Offline";
     }
 }
Ejemplo n.º 2
0
 public SurveyTabControl(CustomSurveysObject s)
 {
     InitializeComponent();
     viewModel = new SurveyTabControlViewModel(s);
     Init();
 }