public void AddVideoView(VideoViewModel vm) { //UserItemsにVideoViewが無かったら追加する if (!UserItems.Contains(VideoView)) { AddUserTab(VideoView); } VideoView.Add(vm); SelectedTab = VideoView; }
public void RemoveUserTab(TabItemViewModel vm) { if (UserItems.Contains(vm)) { UserItems.Remove(vm); if (UserItems.Count == 0) { SelectedTab = Owner.Start; } else { SelectedTab = UserItems.Last(); } } }