diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/NotifyIconService.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/NotifyIconService.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/NotifyIconService.cs b/win/CS/HandBrakeWPF/Services/NotifyIconService.cs new file mode 100644 index 000000000..2319f93bc --- /dev/null +++ b/win/CS/HandBrakeWPF/Services/NotifyIconService.cs @@ -0,0 +1,25 @@ +// <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) + { + this.notifyIcon.Text = text; + } + } +} |