Ejemplo n.º 1
0
        public void Execute()
        {
            ContactRepository repo     = new ContactRepository();
            List <Contact>    contacts = repo.LoadAll();
            ContactPrinter    printer  = new ContactPrinter();

            printer.PrintList(contacts);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Button for printing content of database.
 /// </summary>
 private void BtnPrintDatabase_Click(object sender, RoutedEventArgs e)
 {
     ContactPrinter.PrintContactDb();
 }