Skip to content

Commit b0c4535

Browse files
committed
Handle sink events better to prevent crashes
1 parent 9f626fb commit b0c4535

File tree

9 files changed

+276
-237
lines changed

9 files changed

+276
-237
lines changed

RetailCoder.VBE/Common/Dispatch/DispatcherEventArgs.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
2-
using Rubberduck.Parsing;
32

43
namespace Rubberduck.Common.Dispatch
54
{
6-
public class DispatcherEventArgs<T> : EventArgs, IDispatcherEventArgs<T>
5+
public class DispatcherEventArgs<T> : EventArgs
76
where T : class
87
{
98
private readonly T _item;

RetailCoder.VBE/Common/Dispatch/DispatcherRenamedEventArgs.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
using Rubberduck.Parsing;
2-
3-
namespace Rubberduck.Common.Dispatch
1+
namespace Rubberduck.Common.Dispatch
42
{
5-
public class DispatcherRenamedEventArgs<T> : DispatcherEventArgs<T>, IDispatcherRenamedEventArgs<T>
3+
public class DispatcherRenamedEventArgs<T> : DispatcherEventArgs<T>
64
where T : class
75
{
86
private readonly string _oldName;

0 commit comments

Comments
 (0)