示例#1
0
 private void PrintList()
 {
     contacts.Items.Clear();
     foreach (Person p in a.ListAll())
     {
         PersonHMI pHMI = new PersonHMI(p);
         contacts.Items.Add(pHMI);
     }
 }
示例#2
0
 public PersonWindow(Person p)
 {
     InitializeComponent();
     DataContext = new PersonHMI(p);
 }