Skip to content

Commit

Permalink
HwndHost - Delete delegate command
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Dec 5, 2024
1 parent d605d6e commit 83f4414
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 74 deletions.
1 change: 1 addition & 0 deletions CefSharp.Wpf/Handler/ContextMenuHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Windows.Controls.Primitives;
using System.Windows.Controls;
using System.Windows;
using CefSharp.Wpf.Internals;

namespace CefSharp.Wpf.Handler
{
Expand Down
1 change: 1 addition & 0 deletions CefSharp.Wpf/HwndHost/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using CefSharp.Internals;
using CefSharp.Structs;
using CefSharp.Wpf.HwndHost.Internals;
using CefSharp.Wpf.Internals;

namespace CefSharp.Wpf.HwndHost
{
Expand Down
68 changes: 0 additions & 68 deletions CefSharp.Wpf/HwndHost/Internals/DelegateCommand.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
using System;
using System.Windows.Input;

namespace CefSharp.Wpf
namespace CefSharp.Wpf.Internals
{
/// <summary>
/// DelegateCommand
/// </summary>
/// <seealso cref="System.Windows.Input.ICommand" />
/// <seealso cref="ICommand" />
internal class DelegateCommand : ICommand
{
/// <summary>
Expand Down Expand Up @@ -64,10 +64,7 @@ public bool CanExecute(object parameter)
/// </summary>
public void RaiseCanExecuteChanged()
{
if (CanExecuteChanged != null)
{
CanExecuteChanged(this, EventArgs.Empty);
}
CanExecuteChanged?.Invoke(this, EventArgs.Empty);
}
}
}

0 comments on commit 83f4414

Please sign in to comment.