public static void ImportChain() { if (!File.Exists(Epicoin.Blockchainfile)) { return; } string chain = File.ReadAllText(Epicoin.Blockchainfile); Blockchain.Blockchain c = Serialyze.Unserialize <Blockchain.Blockchain>(chain); Coin = c; }
public static void ImportWallet() { if (!File.Exists(Epicoin.Walletfile)) { return; } string wa = File.ReadAllText(Epicoin.Walletfile); Wallet w = Serialyze.Unserialize <Wallet>(wa); Wallet = w; }