public BlockKeycheckViewModel(BlockKeycheck block)
 {
     Block        = block;
     KeychainList = new ObservableCollection <KeychainViewModel>();
     foreach (KeyChain keychain in block.KeyChains)
     {
         KeychainList.Add(new KeychainViewModel(keychain, rand.Next()));
     }
 }
Exemple #2
0
 public PageBlockKeycheck(BlockKeycheck block)
 {
     InitializeComponent();
     vm          = new BlockKeycheckViewModel(block);
     DataContext = vm;
 }