摘要:
代码:/// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { public App() { Debug.WriteLine("App constructor"); this.Startup += new StartupEventHandler(App_Startup); } void App_Startup(object... 阅读全文
posted @ 2012-07-02 14:00
xiaokang088
阅读(5879)
评论(0)
推荐(0)
摘要:
WPF 单例启动的例子,记一下。参考 WPF Single Instance workaround关键代码:namespace 你的命名空间{ public class Startup { [STAThread] public static void Main(string[] args) { SingleInstanceApplicationWrapper wrapper = new SingleInstanceApplicationWrapper(); wrapper.Run(args); ... 阅读全文
posted @ 2012-07-02 11:30
xiaokang088
阅读(1766)
评论(0)
推荐(2)
浙公网安备 33010602011771号