using System.Windows;

namespace XLAB
{
    public partial class CloneVerificationWindow : Window
    {
        internal CloneVerificationWindow(CloneVerificationWindowViewModel viewModel)
        {
            InitializeComponent();
            DataContext = viewModel;
            viewModel.CloseRequested += ViewModelOnCloseRequested;
        }

        private void ViewModelOnCloseRequested(object sender, bool? dialogResult)
        {
            DialogResult = dialogResult;
            Close();
        }
    }
}
