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(); } }
private void BGerarDanfe_Click(object sender, RoutedEventArgs e) { GeradorDanfe.GerarDanfe(PathXml.Text, PathLogo.Text); }