Exemplo n.º 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (lbExistingTeams.SelectedItem != null)
     {
         try {
             Team teamToPrint = (Team)lbExistingTeams.SelectedItem;
             _userInteraction.CreatePDF(teamToPrint);
             System.Diagnostics.Process.Start(@"StudentList.pdf");
         }
         catch (Exception ex)
         {
             MessageBox.Show("Der er sket en fejl:\n" + ex.Message, "Fejl", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }