public void UpdateLists() { Blocks = new List <Block>(); Miners = new List <Miner>(); BlockRewards = new List <BlockReward>(); Shares = new List <Share>(); MinerWorkers = new List <MinerWorker>(); Information = new PoolInformation(); Bans = new List <Ban>(); //Start with blocks Deserialize(Blocks); Deserialize(Miners); Deserialize(BlockRewards); Deserialize(Shares); Deserialize(MinerWorkers); Deserialize(Information); Deserialize(Bans); }
public void SaveChanges(PoolInformation poolInformation) { Serialize(poolInformation); Information = poolInformation; }