【发布时间】:2010-02-11 15:41:59
【问题描述】:
我们正在使用此代码来启动 Wpf 表单:
string fileName = @"C:\Test\bin\Debug\WpfTest.exe";
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(fileName);
psi.Arguments = entryZfName;
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = psi;
p.Start();
WpfTest 是一个应用程序,其中包含启动的 WPFForm1.xaml。 如何以这种形式访问在上述代码中设置为 psi 的参数。 它们可以在构造函数中访问吗? 还有如何调试这种情况,换句话说,因为我直接从我无法调试或访问代码的代码中启动 wpftest.exe,是否可以调试它。如果您需要更多信息,请告诉我
【问题讨论】: