Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit de9f992

Browse files
committed
Use nameof.
1 parent 678745b commit de9f992

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GitHub.TeamFoundation.14/Connect/GitHubConnectSection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ void UpdateConnection()
285285

286286
void OnPropertyChange(object sender, PropertyChangedEventArgs e)
287287
{
288-
if (e.PropertyName == "IsVisible" && IsVisible && View == null)
288+
if (e.PropertyName == nameof(IsVisible) && IsVisible && View == null)
289289
View = new GitHubConnectContent { DataContext = this };
290-
else if (e.PropertyName == "IsExpanded" && settings != null)
290+
else if (e.PropertyName == nameof(IsExpanded) && settings != null)
291291
settings.IsExpanded = IsExpanded;
292292
}
293293

294294
void InvitationSectionPropertyChanged(object sender, PropertyChangedEventArgs e)
295295
{
296-
if (e.PropertyName == "IsVisible")
296+
if (e.PropertyName == nameof(ITeamExplorerSection.IsVisible))
297297
{
298298
Refresh(SectionConnection);
299299
}

0 commit comments

Comments
 (0)