Skip to content

Commit 83f4414

Browse files
committed
HwndHost - Delete delegate command
1 parent d605d6e commit 83f4414

File tree

4 files changed

+5
-74
lines changed

4 files changed

+5
-74
lines changed

CefSharp.Wpf/Handler/ContextMenuHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Windows.Controls.Primitives;
77
using System.Windows.Controls;
88
using System.Windows;
9+
using CefSharp.Wpf.Internals;
910

1011
namespace CefSharp.Wpf.Handler
1112
{

CefSharp.Wpf/HwndHost/ChromiumWebBrowser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using CefSharp.Internals;
1616
using CefSharp.Structs;
1717
using CefSharp.Wpf.HwndHost.Internals;
18+
using CefSharp.Wpf.Internals;
1819

1920
namespace CefSharp.Wpf.HwndHost
2021
{

CefSharp.Wpf/HwndHost/Internals/DelegateCommand.cs

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
using System;
66
using System.Windows.Input;
77

8-
namespace CefSharp.Wpf
8+
namespace CefSharp.Wpf.Internals
99
{
1010
/// <summary>
1111
/// DelegateCommand
1212
/// </summary>
13-
/// <seealso cref="System.Windows.Input.ICommand" />
13+
/// <seealso cref="ICommand" />
1414
internal class DelegateCommand : ICommand
1515
{
1616
/// <summary>
@@ -64,10 +64,7 @@ public bool CanExecute(object parameter)
6464
/// </summary>
6565
public void RaiseCanExecuteChanged()
6666
{
67-
if (CanExecuteChanged != null)
68-
{
69-
CanExecuteChanged(this, EventArgs.Empty);
70-
}
67+
CanExecuteChanged?.Invoke(this, EventArgs.Empty);
7168
}
7269
}
7370
}

0 commit comments

Comments
 (0)