Removed unnecessary using.

This commit is contained in:
Michael Bucari-Tovo 2021-08-10 00:24:21 -06:00
parent 0b1d513f50
commit 5c8ad72a5e

View File

@ -9,7 +9,6 @@ using System.Threading;
using ApplicationServices;
using DataLayer;
using Dinah.Core.Drawing;
using Dinah.Core.Windows.Forms;
namespace LibationWinForms
{
@ -84,8 +83,7 @@ namespace LibationWinForms
protected void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
=> SyncContext.Post(
args => OnPropertyChangedAsync(args as AsyncCompletedEventArgs),
new AsyncCompletedEventArgs(null, false, new PropertyChangedEventArgs(propertyName))
);
new AsyncCompletedEventArgs(null, false, new PropertyChangedEventArgs(propertyName)));
private void OnPropertyChangedAsync(AsyncCompletedEventArgs e) =>
PropertyChanged?.Invoke(this, e.UserState as PropertyChangedEventArgs);