using System.Windows;
using NexusInstaller.Models;
using NexusInstaller.Views;

namespace NexusInstaller;

public partial class App : Application
{
    private void Application_Startup(object sender, StartupEventArgs e)
    {
        var options = InstallerOptions.Parse(e.Args);

        Window window = options.LaunchOnly
            ? new NexusLaunchWindow(options.InstallRoot)
            : new NexusSetupWindow(options);

        MainWindow = window;
        window.Show();
    }
}
