public void ReplaceTab(TabItemViewModel old, TabItemViewModel current) { if (VideoTabs.Contains(old)) { VideoTabs[VideoTabs.IndexOf(old)] = current; } else if (LiveTabs.Contains(old)) { LiveTabs.Insert(LiveTabs.IndexOf(old), current); } }