示例#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));
 }
示例#2
0
 public Save(CharacterContainer currentChar)
 {
     toBeSaved = currentChar;
             PromtDirectory();
 }