using System;
using System.Windows;

namespace KellermanSoftware.ContactsModule.Controllers
{
    public sealed class ConfirmationController : IConfirmationController
    {
        #region IConfirmationController Members

        public void Show(string title, string message, Action<bool> callback)
        {
            MessageBoxResult result =
                MessageBox.Show(message,
                                title,
                                MessageBoxButton.YesNo,
                                MessageBoxImage.Question);
            callback(result == MessageBoxResult.Yes);
        }

        #endregion IConfirmationController Members
    }
}
