using System.Windows;

namespace SharepointToolbox.Views.Dialogs;

public partial class ConfirmBulkOperationDialog : Window
{
    public bool IsConfirmed { get; private set; }

    public ConfirmBulkOperationDialog(string message)
    {
        InitializeComponent();
        MessageText.Text = message;
    }

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

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