static TownRaffles() { if (TownRaffleDataStorage.SaveFileExists(townRaffleFile)) { townRaffle = TownRaffleDataStorage.LoadTownRaffleList(townRaffleFile).ToList(); } else { townRaffle = new List <TownRaffle>(); SaveTownRaffle(); } }
public static void LoadTownRaffle() { TownRaffleDataStorage.LoadTownRaffleList(townRaffleFile); }
public static void SaveTownRaffle() { TownRaffleDataStorage.SaveTownRaffleList(townRaffle, townRaffleFile); }