示例#1
0
 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);
     }
 }
示例#3
0
        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);
            }
        }