Ejemplo n.º 1
0
    protected override void OnStartup(System.Windows.StartupEventArgs e)
    {
        base.OnStartup(e);
        WpfApp.current = this;
        // Load the main window.
        DocumentList list = new DocumentList();

        this.MainWindow = list;
        list.Show();
        // Load the document that was specified as an argument.
        if (e.Args.Length > 0)
        {
            ShowDocument(e.Args[0]);
        }
    }