public static void ADD_TO_DB(string creationid) { lock (locker) { creationid_DB creationid_DB = JsonConvert.DeserializeObject <creationid_DB>(File.ReadAllText(Main.CreationidDB_Path)); creationid_DB.Creationid.Add(creationid); File.WriteAllText(Main.CreationidDB_Path, JsonConvert.SerializeObject(creationid_DB, Formatting.Indented)); } }
public static bool Check_AlreadyUsed(string creationid) { creationid_DB creationid_DB = JsonConvert.DeserializeObject <creationid_DB>(File.ReadAllText(Main.CreationidDB_Path)); if (creationid_DB.Creationid.Contains(creationid)) { return(true); } else { return(false); } }