private void RawData_Button_Click(object sender, RoutedEventArgs e) { RAW_JSON impexp = new RAW_JSON(); impexp.Export <VPTU.Pokedex.Moves.MoveData>(MoveData); bool?dr = impexp.ShowDialog(); if (dr == true) { MoveData = impexp.Import <VPTU.Pokedex.Moves.MoveData>(); Load(); } }
public Moves(SaveManager.Data.SaveFile.PTUSaveData _SaveData, VPTU.Pokedex.Moves.MoveData _MoveData = null) { InitializeComponent();// Creates the Window SaveData = _SaveData; Setup();// Executes the setup script if (_MoveData == null) { MoveData = new VPTU.Pokedex.Moves.MoveData();// If no specified data, then create a new data class } else { MoveData = _MoveData; // Save the specified data class to a variable for latter Load(); // Load the data } }
private void Moves_SelectionChanged(object sender, SelectionChangedEventArgs e) { Selected_Move = (VPTU.Pokedex.Moves.MoveData)Moves.SelectedItem; }