public void SwitchCharacter(Character character) { gridView.Visibility = Visibility.Collapsed; gridFiles.Visibility = Visibility.Collapsed; CHARACTERloaded = character; CHARACTERcurrent = CHARACTERloaded; CharacterSerializer.CURRENTindex = CharacterSerializer.FindCharacterIndex(CHARACTERloaded); ChangePage(NavCharacter); }
public void SwitchCharacter() { if (gridView.SelectedItem != null) { gridView.Visibility = Visibility.Collapsed; gridFiles.Visibility = Visibility.Collapsed; //Select by Index //CHARACTER = CharacterSerializer.characters.Values.ElementAt(gridView.SelectedIndex); //Select by Character Indicated CHARACTERcurrent = CharacterSerializer.FindCharacterByID(((LoadItem)gridView.SelectedItem).ID); CHARACTERloaded = CharacterSerializer.FindCharacterByID(((LoadItem)gridView.SelectedItem).ID); CharacterSerializer.CURRENTindex = CharacterSerializer.FindCharacterIndex(CHARACTERloaded); ChangePage(NavCharacter); } }