summaryrefslogtreecommitdiff
path: root/product/Presentation/Presenters/NotificationPresenter.cs
blob: ac5add88927284ac293e2b2b114b2f625b109956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.Text;
using System.Windows.Forms;
using Gorilla.Commons.Utility.Core;
using Gorilla.Commons.Utility.Extensions;

namespace MoMoney.Presentation.Presenters
{
    public class NotificationPresenter : INotification
    {
        public void notify(params NotificationMessage[] messages)
        {
            var builder = new StringBuilder();
            messages.each(x => builder.AppendLine(x));
            MessageBox.Show(builder.ToString(), "Ooops...", MessageBoxButtons.OK);
        }
    }
}