public void RemoveUnit(MainUnitViewModel mainUnit) { OnSystemChanged(new SystemChangedEventArgs() { OldMainUnit = mainUnit }); TabCollection.Remove((mainUnit)); LibraryData.FuturamaSys.MainUnits.Remove(mainUnit.DataModel); }
public void TabClosed(BaseViewModel tab) { TabCollection.Remove(tab); BrowserTabControlSelectedIndex = TabCollection.Count - 1; }