/// <summary>
 /// Constructor of the QuestionViewModel
 /// Sets the input variables to the private readonly fields
 /// </summary>
 /// <param name="navigationService">Instance of a Implementation of GalaSoft's INavigationService Interface</param>
 /// <param name="dataService">Instance of a Implementation of the IDataService Interface</param>
 /// <param name="mvm">Instance of the MainViewModel</param>
 /// <param name="jvm">Instance of the JoinVewModel</param>
 /// <param name="cvm">Instance of the CategoryViewModel</param>
 public QuestionViewModel(INavigationService navigationService, IDataService dataService, MainViewModel mvm, JoinGameViewModel jvm, CategoryViewModel cvm, LobbyViewModel lvm)
 {
     this.navigationService = navigationService;
     this.dataService       = dataService;
     this.mvm = mvm;
     this.jvm = jvm;
     this.cvm = cvm;
     this.lvm = lvm;
 }
Exemple #2
0
 /// <summary>
 /// Constructor of the LobbyViewModel
 /// Sets the given parameters to private readonly fields
 /// </summary>
 /// <param name="navigationService">Instance of an implementation of Gaasoft's INavigationService Interface</param>
 /// <param name="dataService">Instance of an implementation of the IDataServiceInterface</param>
 /// <param name="jvm">Instance of of the JoinViewModel</param>
 /// <param name="cvm">Instance of of the CategoryViewModel</param>
 /// <param name="mvm">Instance of of the MainViewModel</param>
 public LobbyViewModel(INavigationService navigationService, IDataService dataService, JoinGameViewModel jvm, CategoryViewModel cvm, MainViewModel mvm)
 {
     this.navigationService = navigationService;
     this.dataService       = dataService;
     this.jvm   = jvm;
     this.cvm   = cvm;
     this.mvm   = mvm;
     Players    = new ObservableCollection <Player>();
     Statistics = new ObservableCollection <Statistic>();
 }