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