Skip to content

Commit c3c24d3

Browse files
committed
Changes following PR comments
1 parent b440188 commit c3c24d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RetailCoder.VBE/UI/Command/FindAllReferencesCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected override void ExecuteImpl(object parameter)
136136
}
137137
catch (Exception e)
138138
{
139-
Console.WriteLine(e);
139+
Logger.Error(e);
140140
}
141141
}
142142

@@ -179,9 +179,9 @@ private Declaration FindFormTarget()
179179
var component = _vbe.SelectedVBComponent;
180180

181181
if (component != null && _vbe.SelectedVBComponent.HasDesigner)
182-
{
183-
var designer = ((dynamic)component.Target).Designer;
184-
var selectedCount = (int)designer.Selected.Count;
182+
{
183+
var designer = ((dynamic)component.Target).Designer; // COM Object, need to late bind
184+
int selectedCount = designer.Selected.Count;
185185

186186
if (selectedCount > 1) { return null; }
187187

0 commit comments

Comments
 (0)