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

Commit 3711fdb

Browse files
committed
Merge master into shana/kill-duplicated-code
Conflicts: src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml.cs src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml.cs src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCreationControl.xaml.cs src/GitHub.VisualStudio/UI/Views/Controls/RepositoryPublishControl.xaml.cs src/GitHub.VisualStudio/UI/Views/Controls/TwoFactorControl.xaml.cs
2 parents b9b0f21 + 5bc3aa1 commit 3711fdb

File tree

10 files changed

+17
-6
lines changed

10 files changed

+17
-6
lines changed

src/GitHub.Exports/Helpers/NotificationAwareObject.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System.ComponentModel;
2+
using GitHub.VisualStudio.Helpers;
23

34
namespace GitHub.Primitives
45
{
5-
public abstract class NotificationAwareObject : INotifyPropertyChanged
6+
public abstract class NotificationAwareObject : INotifyPropertyChanged, INotifyPropertySource
67
{
78
public event PropertyChangedEventHandler PropertyChanged;
89

src/GitHub.UI/GitHub.UI.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
<Reference Include="WindowsBase" />
6565
</ItemGroup>
6666
<ItemGroup>
67+
<Compile Include="Controls\Octicons\OcticonPaths.Designer.cs">
68+
<AutoGen>True</AutoGen>
69+
<DesignTime>True</DesignTime>
70+
<DependentUpon>OcticonPaths.resx</DependentUpon>
71+
</Compile>
6772
<None Include="..\..\script\Key.snk" Condition="$(Buildtype) == 'Internal'">
6873
<Link>Key.snk</Link>
6974
</None>
@@ -85,7 +90,6 @@
8590
</Compile>
8691
<Compile Include="Controls\Octicons\OcticonImage.cs" />
8792
<Compile Include="Controls\Octicons\OcticonPath.cs" />
88-
<Compile Include="Controls\Octicons\OcticonPaths.Designer.cs" />
8993
<Compile Include="Controls\TrimmedTextBlock.cs" />
9094
<Compile Include="Helpers\AccessKeysManagerScoping.cs" />
9195
<Compile Include="Controls\Buttons\OcticonButton.cs" />
@@ -187,6 +191,8 @@
187191
<ItemGroup>
188192
<EmbeddedResource Include="Controls\Octicons\OcticonPaths.resx">
189193
<SubType>Designer</SubType>
194+
<Generator>ResXFileCodeGenerator</Generator>
195+
<LastGenOutput>OcticonPaths.Designer.cs</LastGenOutput>
190196
</EmbeddedResource>
191197
</ItemGroup>
192198
<ItemGroup>

src/GitHub.VisualStudio/Base/TeamExplorerItemBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace GitHub.VisualStudio.Base
1313
{
14-
public class TeamExplorerItemBase : TeamExplorerGitRepoInfo, INotifyPropertySource
14+
public class TeamExplorerItemBase : TeamExplorerGitRepoInfo
1515
{
1616
readonly ISimpleApiClientFactory apiFactory;
1717
protected ITeamExplorerServiceHolder holder;

src/GitHub.VisualStudio/Base/TeamExplorerNavigationItemBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
using GitHub.VisualStudio.Helpers;
99
using Microsoft.TeamFoundation.Controls;
1010
using Microsoft.VisualStudio.PlatformUI;
11-
using Microsoft.VisualStudio.TeamFoundation.Git.Extensibility;
1211
using NullGuard;
1312
using GitHub.Models;
1413

1514
namespace GitHub.VisualStudio.Base
1615
{
17-
public class TeamExplorerNavigationItemBase : TeamExplorerItemBase, ITeamExplorerNavigationItem2, INotifyPropertySource
16+
public class TeamExplorerNavigationItemBase : TeamExplorerItemBase, ITeamExplorerNavigationItem2
1817
{
1918
readonly Octicon octicon;
2019

src/GitHub.VisualStudio/Base/TeamExplorerSectionBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace GitHub.VisualStudio.Base
1414
{
15-
public class TeamExplorerSectionBase : TeamExplorerItemBase, ITeamExplorerSection, INotifyPropertySource
15+
public class TeamExplorerSectionBase : TeamExplorerItemBase, ITeamExplorerSection
1616
{
1717
protected IConnectionManager connectionManager;
1818

src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class GenericLoginControl : SimpleViewUserControl<ILoginControlViewModel,
2020
/// Interaction logic for LoginControl.xaml
2121
/// </summary>
2222
[ExportView(ViewType=UIViewType.Login)]
23+
[PartCreationPolicy(CreationPolicy.NonShared)]
2324
public partial class LoginControl : GenericLoginControl
2425
{
2526
public LoginControl()

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class GenericRepositoryCloneControl : SimpleViewUserControl<IRepositoryCl
2626
/// Interaction logic for CloneRepoControl.xaml
2727
/// </summary>
2828
[ExportView(ViewType=UIViewType.Clone)]
29+
[PartCreationPolicy(CreationPolicy.NonShared)]
2930
public partial class RepositoryCloneControl : GenericRepositoryCloneControl
3031
{
3132
public RepositoryCloneControl()

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCreationControl.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class GenericRepositoryCreationControl : SimpleViewUserControl<IRepositor
2222
/// Interaction logic for CloneRepoControl.xaml
2323
/// </summary>
2424
[ExportView(ViewType=UIViewType.Create)]
25+
[PartCreationPolicy(CreationPolicy.NonShared)]
2526
public partial class RepositoryCreationControl : GenericRepositoryCreationControl
2627
{
2728
public RepositoryCreationControl()

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryPublishControl.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class GenericRepositoryPublishControl : SimpleViewUserControl<IRepository
1616
{ }
1717

1818
[ExportView(ViewType=UIViewType.Publish)]
19+
[PartCreationPolicy(CreationPolicy.NonShared)]
1920
public partial class RepositoryPublishControl : GenericRepositoryPublishControl
2021
{
2122
public RepositoryPublishControl()

src/GitHub.VisualStudio/UI/Views/Controls/TwoFactorControl.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class GenericTwoFactorControl : SimpleViewUserControl<ITwoFactorDialogVie
1717
/// Interaction logic for PasswordView.xaml
1818
/// </summary>
1919
[ExportView(ViewType=UIViewType.TwoFactor)]
20+
[PartCreationPolicy(CreationPolicy.NonShared)]
2021
public partial class TwoFactorControl : GenericTwoFactorControl
2122
{
2223
public TwoFactorControl()

0 commit comments

Comments
 (0)