Example #1
0
        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);
            }
        }
Example #2
0
        private void SaveData_FileOpened(Object sender, FileOpenedArgs e)
        {
            saveData = e.saveFile;
            BindProperties();

            tabstripTopLevelGroup.Visible = (saveData != null);
            saveFileLoaded = true;
        }