File tree 2 files changed +9
-1
lines changed
Samples/UnitConverter.Wpf/UnitConverter.Wpf 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ public void Execute(object parameter)
26
26
_commandDelegate . Invoke ( ) ;
27
27
}
28
28
29
+ // Is never used
30
+ #pragma warning disable CS0067
29
31
public event EventHandler CanExecuteChanged ;
32
+ #pragma warning restore CS0067
30
33
}
31
- }
34
+ }
Original file line number Diff line number Diff line change 2
2
using System . Collections . ObjectModel ;
3
3
using System . ComponentModel ;
4
4
using System . Linq ;
5
+ using System . Runtime . CompilerServices ;
5
6
using System . Windows . Input ;
6
7
7
8
namespace UnitsNet . Samples . UnitConverter . Wpf
@@ -21,6 +22,7 @@ public MainWindowDesignVm()
21
22
SelectedToUnit = Units [ 2 ] ;
22
23
}
23
24
25
+
24
26
public ReadOnlyObservableCollection < QuantityType > Quantities { get ; }
25
27
public ReadOnlyObservableCollection < UnitListItem > Units { get ; }
26
28
public QuantityType SelectedQuantity { get ; set ; }
@@ -34,7 +36,10 @@ public MainWindowDesignVm()
34
36
35
37
public ICommand SwapCommand { get ; } = new RoutedCommand ( ) ;
36
38
39
+ // Is never used
40
+ #pragma warning disable CS0067
37
41
public event PropertyChangedEventHandler PropertyChanged ;
42
+ #pragma warning restore CS0067
38
43
39
44
private static ReadOnlyObservableCollection < T > ToReadOnly < T > ( IEnumerable < T > items )
40
45
{
You can’t perform that action at this time.
0 commit comments