Exemplo n.º 1
0
 // 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));
 }
Exemplo n.º 2
0
 public Save(CharacterContainer currentChar)
 {
     toBeSaved = currentChar;
             PromtDirectory();
 }