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

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

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

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

            _refreshing = false;
        }