public ViewProfilePage(UserModel model) { Model = model; Title = Model.User.Name; ProfileContentView.Parameters parameters = new ProfileContentView.Parameters { UserModel = Model }; Content = new ProfileContentView(parameters); UserController.Instance.UpdateProfileData(Model, false); }
public ProfilePage(UserModel userModel) : base() { Model = userModel; Title = AppResources.Profile; ProfileContentView.Parameters parameters = new ProfileContentView.Parameters(); parameters.UserModel = Model; parameters.IsBtnEnabled = true; parameters.OnRating = OnRatingClicked; parameters.OnContactList = OnContactListClicked; parameters.OnSaveChanges = OnEditUserProfile; Content = new ProfileContentView(parameters); UserController.Instance.UpdateProfileData(Model); }