public void Read(string EncryptedSaveFile) { var UnencryptedSaveFile = Cypher.Decrypt(EncryptedSaveFile); if (UnencryptedSaveFile != null) { var args = new FileOpenedArgs(); args.saveFile = JsonConvert.DeserializeObject <SaveFile>(UnencryptedSaveFile); FileOpened(this, args); } }
private void SaveData_FileOpened(Object sender, FileOpenedArgs e) { saveData = e.saveFile; BindProperties(); tabstripTopLevelGroup.Visible = (saveData != null); saveFileLoaded = true; }