/// <summary> /// /// </summary> /// <param name="blockChainModel"></param> public BlockChainViewModel(BlockChainObj blockChainModel) { model = blockChainModel; BindingOperations.EnableCollectionSynchronization(Blocks, __BlocksLock); model.ChainUpdated += ProcessChainUpdateFromModel; PopulateBlockEntryCollection(); }
/// <summary> /// Entry point for our programme /// /// (Business logic, code behind, models... /// ...whatever you kids are calling it these days) /// </summary> public Main() { server = new P2PServer(1000); client = new P2PClient(); server.OnConnectionSuccessful += SetClientFromServer; lewCoins = new BlockChainObj(client); Task serverConnection = Task.Run(() => server.Start()); }
public AddBlockViewModel(BlockChainObj blockChainModel) { model = blockChainModel; model.StatusUpdate += StatusUpdateFromBlockChain; }