File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public MainWindowViewModel()
15
15
GenerateDocumentCommand = new RelayCommand ( GenerateDocument ) ;
16
16
}
17
17
18
- public void GenerateDocument ( object _ )
18
+ public void GenerateDocument ( )
19
19
{
20
20
Console . WriteLine ( Invoice . Name ) ;
21
21
}
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ namespace InvoiceApp
5
5
{
6
6
public class RelayCommand : ICommand
7
7
{
8
- private readonly Action < object > _execute ;
8
+ private readonly Action _execute ;
9
9
private readonly Predicate < object > _canExecute ;
10
10
11
- public RelayCommand ( Action < object > execute , Predicate < object > canExecute = null )
11
+ public RelayCommand ( Action execute , Predicate < object > canExecute = null )
12
12
{
13
13
_execute = execute ?? throw new ArgumentNullException ( nameof ( execute ) ) ;
14
14
_canExecute = canExecute ;
@@ -25,9 +25,9 @@ public bool CanExecute(object? parameter)
25
25
return _canExecute == null || _canExecute ( parameter ) ;
26
26
}
27
27
28
- public void Execute ( object ? parameter )
28
+ public void Execute ( object ? _ )
29
29
{
30
- _execute ( parameter ) ;
30
+ _execute ( ) ;
31
31
}
32
32
}
33
33
}
You can’t perform that action at this time.
0 commit comments