public void Initialize()
        {
            UserInstance = new NicoNicoUser(this, UserPageUrl);
            UserEntry    = UserInstance.GetUserInfo();
            Name         = UserEntry.UserName;

            UserContentList.Clear();

            UserContentList.Add(new UserNicoRepoViewModel(this));
            UserContentList.Add(new UserMylistViewModel(this));
            UserContentList.Add(new UserVideoViewModel(this));
        }
Beispiel #2
0
        public async void Initialize()
        {
            IsActive = true;
            var info = await UserInstance.GetUserInfoAsync();

            if (info == null)
            {
                LoadFailed = true;
            }
            else
            {
                UserInfo = info;
                UserContentList.Clear();

                UserContentList.Add(new UserNicoRepoViewModel(this));
                UserContentList.Add(new UserMylistViewModel(this));
                UserContentList.Add(new UserVideoViewModel(this));
            }
            Name += "\n" + UserInfo.UserName;


            IsActive = false;
        }