Esempio n. 1
0
 public MainPage()
 {
     this.InitializeComponent();
     headsTailsUserDetails = new HeadsTailsUserDetailsModel();
     headsTailsModel = new HeadsTailsModel(headsTailsUserDetails);
     headsTailsViewModel = new HeadsTailsViewModel(headsTailsModel, headsTailsUserDetails);
     DataContext = headsTailsViewModel;
 }
 public HeadsTailsViewModel(HeadsTailsModel passedInModel, IHeadsTailsUserDetailsModel passedInUserModel)
 {
     headsTailsModel = passedInModel;
     headsTailsUserDetailsModel = passedInUserModel;
 }