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

                if (UserItems.Count == 0)
                {
                    SelectedTab = Owner.Start;
                }
                else
                {
                    SelectedTab = UserItems.Last();
                }
            }
        }