Beispiel #1
0
        private void toolStripButtonCreatePDF_Click(object sender, EventArgs e)
        {
            string   filename = $@"{ConfigurationManager.AppSettings["TempDir"]}\order.pdf";
            OrderPDF orderPDF = new OrderPDF();

            orderPDF.Create(trip, evnt, filename);
            Process.Start(filename);
        }
Beispiel #2
0
        private void toolStripButtonSendOrderMail_Click(object sender, EventArgs e)
        {
            string   filename = $@"{ConfigurationManager.AppSettings["TempDir"]}\order.pdf";
            OrderPDF orderPDF = new OrderPDF();

            orderPDF.Create(trip, evnt, filename);
            Mailer.SendMail(evnt.eMail, evnt.name, "Order", "Dear Sir or Madam,\n\nAttached you will find the order of our group.\n\nCheers,\nMarcel Sennema\n", filename);
        }
Beispiel #3
0
        private void buttonCreatePDF_Click(object sender, EventArgs e)
        {
            OrderPDF orderPDF = new OrderPDF();

            orderPDF.Create(trip, evnt, "order.pdf");
        }