Пример #1
0
        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);
        }
Пример #2
0
        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);
        }