private void TabPartySelect_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { if (_refreshing) { return; } _selectedIndex = TabPartySelect.SelectedIndex; PartyEditor.Load((Characters)_selectedIndex); PartyEditor.Refresh(); }
public void Refresh() { _refreshing = true; if (_selectedIndex == -1) { TabPartySelect.SelectedIndex = 0; _selectedIndex = 0; } PartyEditor.Load((Characters)_selectedIndex); PartyEditor.Refresh(); _refreshing = false; }