1
- using NAudio . CoreAudioApi ;
1
+ /********************************************************************
2
+ * Copyright (C) 2015-2017 Antoine Aflalo
3
+ *
4
+ * This program is free software; you can redistribute it and/or
5
+ * modify it under the terms of the GNU General Public License
6
+ * as published by the Free Software Foundation; either version 2
7
+ * of the License, or (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ ********************************************************************/
14
+
15
+ using NAudio . CoreAudioApi ;
2
16
using Serilog ;
3
17
using SoundSwitch . Audio . Manager ;
4
18
using SoundSwitch . Audio . Manager . Interop . Enum ;
@@ -10,20 +24,14 @@ public abstract class AbstractIconChanger : IIconChanger
10
24
{
11
25
private readonly ILogger _log ;
12
26
13
- protected AbstractIconChanger ( )
14
- {
15
- _log = Log . ForContext ( "IconChanger" , TypeEnum ) ;
16
- }
27
+ protected AbstractIconChanger ( ) => _log = Log . ForContext ( "IconChanger" , TypeEnum ) ;
17
28
18
- public abstract IconChangerFactory . ActionEnum TypeEnum { get ; }
29
+ public abstract IconChangerEnum TypeEnum { get ; }
19
30
public abstract string Label { get ; }
20
31
21
32
protected abstract DataFlow Flow { get ; }
22
33
23
- protected virtual bool NeedsToChangeIcon ( DeviceInfo deviceInfo )
24
- {
25
- return deviceInfo . Type == Flow ;
26
- }
34
+ protected virtual bool NeedsToChangeIcon ( DeviceInfo deviceInfo ) => deviceInfo . Type == Flow ;
27
35
28
36
public void ChangeIcon ( UI . Component . TrayIcon trayIcon )
29
37
{
0 commit comments