summaryrefslogtreecommitdiff
path: root/product/Presentation/Presenters/NotificationPresenter.cs
blob: 8cbe4109024d36772a4b5ce6ecc1583359423ab3 (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.Shell
{
    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);
        }
    }
}