public void RemoveSelected() { if (SelectedIndex == NoneSelection) { return; } FilesList.RemoveAt(SelectedIndex); if (FilesList.Count == 0) { SelectedIndex = NoneSelection; } }
public void CloseTab() { if (SelectedTab == -1) { return; } FilesList.RemoveAt(SelectedTab); if (FilesList.Count == 0) { SelectedTab = -1; } }