using System.Windows;

namespace NexusInstaller.Views;

public partial class NexusFreshPocResetDialog : Window
{
    private NexusFreshPocResetDialog()
    {
        InitializeComponent();
    }

    public static bool Confirm(Window? owner)
    {
        var dialog = new NexusFreshPocResetDialog
        {
            Owner = owner,
        };

        return dialog.ShowDialog() == true;
    }

    private void UnderstandCheck_Changed(object sender, RoutedEventArgs e)
    {
        ContinueButton.IsEnabled = UnderstandCheck.IsChecked == true;
    }

    private void Cancel_Click(object sender, RoutedEventArgs e)
    {
        DialogResult = false;
        Close();
    }

    private void Continue_Click(object sender, RoutedEventArgs e)
    {
        DialogResult = true;
        Close();
    }
}
