// DONE! public Load() { OpenFileDialog openFile = new OpenFileDialog(); openFile.Filter = "Javascript serialized files (.json) | *.json"; openFile.Title = "Open your Pathfinder character sheet"; openFile.DefaultExt = ".json"; openFile.ShowDialog(); if (openFile.FileName == "") return; currentContainer = JsonConvert.DeserializeObject<CharacterContainer>(File.ReadAllText(openFile.FileName)); }
public Save(CharacterContainer currentChar) { toBeSaved = currentChar; PromtDirectory(); }