예제 #1
0
        private void TabPartySelect_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (_refreshing)
            {
                return;
            }

            _selectedIndex = TabPartySelect.SelectedIndex;
            PartyEditor.Load((Characters)_selectedIndex);
            PartyEditor.Refresh();
        }
예제 #2
0
        public void Refresh()
        {
            _refreshing = true;

            if (_selectedIndex == -1)
            {
                TabPartySelect.SelectedIndex = 0;
                _selectedIndex = 0;
            }

            PartyEditor.Load((Characters)_selectedIndex);
            PartyEditor.Refresh();

            _refreshing = false;
        }