/// <summary>
 /// Default constructor.
 /// </summary>
 public ListOfSurveysViewModel()
 {
     List = new ObservableCollection<SurveyBasicInfo>();
     DownloadStatus = new DownloadListStatus();
     Connection = new TestConnection();
     _operations = new OperationsOnListOfSurveys(List, DownloadStatus);
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 public ListOfNewSurveysViewModel()
 {
     List = new ObservableCollection<SurveyBasicInfo>();
     DownloadListStatus = new DownloadListStatus();
     Operations = new OperationsOnListOfSurveys(List, DownloadListStatus);
     DownloadSurveysStatus = new DownloadSurveysStatus();
 }
示例#3
0
 /// <summary>
 /// Allows you to initialize all necessary data objects.
 /// </summary>
 /// <param name="list">List of surveys.</param>
 /// <param name="downloadStatus">Instance of <see cref="DownloadListStatus"/> class.</param>
 public OperationsOnListOfSurveys(ObservableCollection <SurveyBasicInfo> list, DownloadListStatus downloadStatus)
 {
     _list           = list;
     _downloadStatus = downloadStatus;
 }
 /// <summary>
 /// Allows you to initialize all necessary data objects.
 /// </summary>
 /// <param name="list">List of surveys.</param>
 /// <param name="downloadStatus">Instance of <see cref="DownloadListStatus"/> class.</param>
 public OperationsOnListOfSurveys(ObservableCollection<SurveyBasicInfo> list, DownloadListStatus downloadStatus)
 {
     _list = list;
     _downloadStatus = downloadStatus;
 }