Skip to content

Commit

Permalink
Add Tooltip to explain the notifications. Fixes #49
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Aflalo committed Dec 29, 2015
1 parent 4945b65 commit 48ae56f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SoundSwitch/Properties/Notifications.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions SoundSwitch/Properties/Notifications.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,9 @@
<data name="NotifSound" xml:space="preserve">
<value>Notification Sonore</value>
</data>
<data name="explanation" xml:space="preserve">
<value>Notification de Windows: Utilise le système de notification de Windows.
Notification Sonore: Joue un signal sonore sur le périfique audio lors du "switch".
Aucune Notification: ... Aucune Notification.</value>
</data>
</root>
5 changes: 5 additions & 0 deletions SoundSwitch/Properties/Notifications.resx
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,9 @@
<data name="NotifSound" xml:space="preserve">
<value>Sound Notification</value>
</data>
<data name="explanation" xml:space="preserve">
<value>Window's Notification: Use the usual OS notification system
Sound Notification: Play a sound on the switched audio device
No Notification: ... No Notification at all.</value>
</data>
</root>
2 changes: 2 additions & 0 deletions SoundSwitch/UI/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public Settings()
audioDeviceLister.GetRecordingDevices());
notifLabel.Text = Properties.SettingsString.notification;

var toolTipNotification = new ToolTip();
toolTipNotification.SetToolTip(notificationComboBox, Notifications.explanation);
notificationComboBox.DisplayMember = "Label";
notificationComboBox.ValueMember = "Type";
notificationComboBox.DataSource = NotificationFactory.GetNotificationDisplayers();
Expand Down

0 comments on commit 48ae56f

Please sign in to comment.