예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="blockChainModel"></param>
 public BlockChainViewModel(BlockChainObj blockChainModel)
 {
     model = blockChainModel;
     BindingOperations.EnableCollectionSynchronization(Blocks, __BlocksLock);
     model.ChainUpdated += ProcessChainUpdateFromModel;
     PopulateBlockEntryCollection();
 }
예제 #2
0
 /// <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());
 }
예제 #3
0
 public AddBlockViewModel(BlockChainObj blockChainModel)
 {
     model = blockChainModel;
     model.StatusUpdate += StatusUpdateFromBlockChain;
 }