private void OnRefreshClick(object sender, RoutedEventArgs e) { contactListBox.Items.Clear(); foreach (Contact contact in Contact.GetContacts()) { contactListBox.Items.Add(contact); } }
private void OnRefreshClick(object sender, RoutedEventArgs e) { treeView.Items.Clear(); foreach (Contact contact in Contact.GetContacts()) { ContactTreeNode contactTreeNode = new ContactTreeNode(contact); treeView.Items.Add(contactTreeNode); } }
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); Entity.Initialize(); foreach (Contact contact in Contact.GetContacts()) { contactListBox.Items.Add(contact); } }
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); Entity.Initialize(); foreach (Contact contact in Contact.GetContacts()) { ContactTreeNode contactTreeNode = new ContactTreeNode(contact); treeView.Items.Add(contactTreeNode); } }