Skip to content

Commit c7d6528

Browse files
committed
* Make use of new UpdateManager library
1 parent 030c220 commit c7d6528

File tree

4 files changed

+6
-144
lines changed

4 files changed

+6
-144
lines changed

PK Finder/Classes/Update.Cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

PK Finder/Classes/UpdateManager.cs

Lines changed: 0 additions & 77 deletions
This file was deleted.

PK Finder/PK Finder.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
</Reference>
5959
<Reference Include="UIAutomationProvider" />
6060
<Reference Include="UIAutomationTypes" />
61+
<Reference Include="UpdateManager">
62+
<HintPath>..\..\UpdateManager\UpdateManager\bin\Release\UpdateManager.dll</HintPath>
63+
</Reference>
6164
<Reference Include="WindowsBase" />
6265
<Reference Include="PresentationCore" />
6366
<Reference Include="PresentationFramework" />
@@ -70,8 +73,6 @@
7073
<Compile Include="Classes\KeyInfo.cs" />
7174
<Compile Include="Classes\KeyManager.cs" />
7275
<Compile Include="Classes\StyleManager.cs" />
73-
<Compile Include="Classes\Update.cs" />
74-
<Compile Include="Classes\UpdateManager.cs" />
7576
<Compile Include="Windows\AboutWindow.xaml.cs">
7677
<DependentUpon>AboutWindow.xaml</DependentUpon>
7778
</Compile>

PK Finder/Windows/MainWindow.xaml.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ public partial class MainWindow
1515

1616
#region Variables
1717
private KeyInfo _keyInfo;
18-
private readonly UpdateManager _updateManager;
18+
private readonly UpdateManager.UpdateManager _updateManager;
1919
#endregion
2020

2121
public MainWindow()
2222
{
23-
_updateManager = new UpdateManager("http://codedead.com/Software/PK%20Finder/update.xml");
24-
2523
InitializeComponent();
2624

25+
_updateManager = new UpdateManager.UpdateManager(System.Reflection.Assembly.GetExecutingAssembly().GetName().Version, "http://codedead.com/Software/PK%20Finder/update.xml", "PK Finder");
26+
2727
LoadTheme();
2828
RefreshProductKey();
2929

@@ -122,7 +122,6 @@ private void BtnCopy_OnClick(object sender, RoutedEventArgs e)
122122
try
123123
{
124124
Clipboard.SetText(TxtProductKey.Text);
125-
126125
}
127126
catch (Exception ex)
128127
{

0 commit comments

Comments
 (0)