Skip to content

Commit

Permalink
Update WpfApp to use SharedServices library
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxhy committed May 21, 2024
1 parent d3a8694 commit d22c1f4
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.17.0">
<PackageReference Include="Leosac.WpfApp" Version="1.18.0">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="MaterialDesignThemes" Version="4.9.0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.17.0">
<PackageReference Include="Leosac.WpfApp" Version="1.18.0">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="MaterialDesignThemes" Version="4.9.0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.17.0">
<PackageReference Include="Leosac.WpfApp" Version="1.18.0">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="MaterialDesignThemes" Version="4.9.0">
Expand Down
2 changes: 1 addition & 1 deletion KeyManager.Library.UI/Favorites.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Leosac.WpfApp;
using Leosac.SharedServices;
using System.Collections.ObjectModel;
using System.Text;

Expand Down
2 changes: 1 addition & 1 deletion KeyManager.Library.UI/KMSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Leosac.WpfApp;
using Leosac.SharedServices;

namespace Leosac.KeyManager.Library.UI
{
Expand Down
2 changes: 1 addition & 1 deletion KeyManager.Library.UI/KeyManager.Library.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.17.0" />
<PackageReference Include="Leosac.WpfApp" Version="1.18.0" />
<PackageReference Include="MaterialDesignThemes" Version="4.9.0" />
<PackageReference Include="Net.Codecrete.QrCodeGenerator" Version="2.0.5" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
3 changes: 3 additions & 0 deletions KeyManager.Setup/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@
<Component Id="SecretSharingDotNetComponent">
<File Id="___var.SecretSharingDotNet.dll_" Source="$(var.KeyManager.TargetDir)\SecretSharingDotNet.dll" />
</Component>
<Component Id="SharedServicesComponent">
<File Id="___var.SharedServices.dll_" Source="$(var.KeyManager.TargetDir)\SharedServices.dll" />
</Component>
<Component Id="SkiaSharpComponent">
<File Id="___var.SkiaSharp.dll_" Source="$(var.KeyManager.TargetDir)\SkiaSharp.dll" />
</Component>
Expand Down
2 changes: 1 addition & 1 deletion KeyManager/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Leosac.KeyManager.Library.Plugin;
using Leosac.KeyManager.Library.UI;
using Leosac.SharedServices;
using Leosac.WpfApp;
using Newtonsoft.Json;
using System.Configuration;
using System.Linq;
using System.Windows;

Expand Down
21 changes: 3 additions & 18 deletions KeyManager/EditKeyStoreControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
using Leosac.KeyManager.Domain;
using Leosac.KeyManager.Library;
using Leosac.KeyManager.Library.KeyStore;
using Leosac.KeyManager.Library.UI;
using Leosac.KeyManager.Library.UI.Domain;
using Leosac.SharedServices;
using Leosac.WpfApp;
using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Leosac.KeyManager
{
Expand Down Expand Up @@ -88,7 +73,7 @@ private async void BtnPublish_Click(object sender, RoutedEventArgs e)
}
else
{
MaintenancePlan.OpenRegistration();
MaintenancePlanHelper.OpenRegistration();
}
}
}
Expand All @@ -104,7 +89,7 @@ private async void BtnDiff_Click(object sender, RoutedEventArgs e)
}
else
{
MaintenancePlan.OpenRegistration();
MaintenancePlanHelper.OpenRegistration();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion KeyManager/KMLeosacAppInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Leosac.KeyManager
{
public class KMLeosacAppInfo : LeosacAppInfo
public class KMLeosacAppInfo : LeosacWinAppInfo
{
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod()?.DeclaringType);

Expand Down
2 changes: 1 addition & 1 deletion KeyManager/KeyManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.17.0" />
<PackageReference Include="Leosac.WpfApp" Version="1.18.0" />
<PackageReference Include="log4net" Version="2.0.17" />
<PackageReference Include="MaterialDesignThemes" Version="4.9.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down

0 comments on commit d22c1f4

Please sign in to comment.