예제 #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            if (e.Args.Length > 0)
            {
                String xmlPath  = e.Args[0];
                String logoPath = e.Args.Length >= 2 ? e.Args[1] : null;

                GeradorDanfe.GerarDanfe(xmlPath, logoPath);
                Application.Current.Shutdown();
            }
        }
예제 #2
0
 private void BGerarDanfe_Click(object sender, RoutedEventArgs e)
 {
     GeradorDanfe.GerarDanfe(PathXml.Text, PathLogo.Text);
 }