summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/NotifyIconService.cs
blob: df28b6314a49d21104046c80a19ea24f42122861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// <copyright file="NotifyIconService.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>

namespace HandBrakeWPF.Services
{
    using System.Windows.Forms;

    using HandBrakeWPF.Services.Interfaces;

    public class NotifyIconService : INotifyIconService
    {
        private NotifyIcon notifyIcon;

        public void RegisterNotifyIcon(NotifyIcon ni)
        {
            this.notifyIcon = ni;
        }

        public void SetTooltip(string text)
        {
            if (this.notifyIcon != null)
            {
                this.notifyIcon.Text = text;
            }
        }
    }
}