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)); }
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) }; }