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

            UserContentList = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher) {

                new UserNicoRepoViewModel(this),
                new UserMylistViewModel(this),
                new UserVideoViewModel(this)
            };
        }
Exemple #2
0
        public async void Initialize() {

            UserInstance = new NicoNicoUser(this, UserPageUrl);
            UserEntry = await UserInstance.GetUserInfoAsync();
            Name = UserEntry.UserName;

            UserContentList.Clear();

            UserContentList.Add(new UserNicoRepoViewModel(this));
            UserContentList.Add(new UserMylistViewModel(this));
            UserContentList.Add(new UserVideoViewModel(this));

        }