Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            // Loading from a file, you can also load from a stream
            var xml = XDocument.Load(@"C:\ExampleXRechnung\bsp1.xml");

            var rechnung = XML_Invoice_Mapper.MapXMLToInvoice(xml);
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fileDialog = new OpenFileDialog();

            if (fileDialog.ShowDialog() == true)
            {
                PDFCreator.CreatePDF(XML_Invoice_Mapper.MapToInvoice(fileDialog.FileName));
            }
        }