public void SavePersuitData() { DataBaseWorker.SavePursuitData(JsonConvert.SerializeObject(this), Program.datosCompartidos.activeUser, LookAndPlayForm.Program.datosCompartidos.startTimeTest); string path = DataConverter.OldTypeDirectory(Program.datosCompartidos.startTimeTest, Program.datosCompartidos.activeUser); DataValidation.CheckDirectoryPath(path, true, FileAttributes.Hidden); File.WriteAllText(path + @"\persuitData.json", JsonConvert.SerializeObject(this)); }