From 5bb3f93309fa0d23d6c2d73b2036ad033009e291 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 14 Feb 2023 11:17:10 +0100 Subject: [PATCH] Removed PCSC Support and LibLogicalAccess Dependency Removed some License related Functions: No more PCSC Support and LibLogicalAccess (now owned by HID) Dependency Changed PDF Library to GemBox PDF and removed iTextPDF Dependency --- .../Remote/FromFile/ReportReaderWriter.cs | 2 + .../Remote/FromIO/ElatecNetProvider.cs | 10 +- RFiDGear/Model/GenericTaskModel.cs | 2 +- RFiDGear/Properties/AssemblyInfo.cs | 2 +- RFiDGear/RFiDGear.csproj.user | 2 +- RFiDGear/View/AboutView.xaml | 2 + .../TabPageMiscReaderSettingsView.xaml | 2 +- RFiDGear/View/SettingsView/SetupView.xaml | 9 +- .../TaskViews/CommonTask/CommonTaskView.xaml | 6 + .../TabPageLogicTaskView.xaml | 17 ++- .../TabPageReportSettingsView.xaml | 7 +- .../TabPageBasicChipCheckUpView.xaml | 23 ++-- .../GenericChipTask/GenericChipTaskView.xaml | 6 + .../MifareClassicSetupView.xaml | 7 ++ .../TabPageMifareClassicDataExplorerView.xaml | 15 ++- .../MifareDesfireSetupView.xaml | 5 + .../TabPageMifareDesfireAppCreationView.xaml | 8 ++ ...MifareDesfireApplicationMasteringView.xaml | 14 ++- ...TabPageMifareDesfireCardMasteringView.xaml | 12 +- .../TabPageMifareDesfireDataExplorerView.xaml | 9 ++ ...TabPageMifareDesfireFileMasteringView.xaml | 14 ++- .../MifareUltralightSetupView.xaml | 8 +- ...bPageMifareUltralightDataExplorerView.xaml | 12 +- RFiDGear/View/UpdateNotifierView.xaml | 4 + .../RFiDChipChildLayerViewModel.cs | 19 +-- .../RFiDChipParentLayerViewModel.cs | 2 +- RFiDGear/ViewModel/MainWindowViewModel.cs | 22 +--- .../CommonTaskViewModel.cs | 9 +- .../GenericChipTaskViewModel.cs | 118 +++++++++--------- .../MifareClassicSetupViewModel.cs | 4 +- .../MifareDesfireSetupViewModel.cs | 12 +- .../MifareUltralightSetupViewModel.cs | 4 +- 32 files changed, 230 insertions(+), 158 deletions(-) diff --git a/RFiDGear/DataAccessLayer/Remote/FromFile/ReportReaderWriter.cs b/RFiDGear/DataAccessLayer/Remote/FromFile/ReportReaderWriter.cs index b4c2732..3c8f5c9 100644 --- a/RFiDGear/DataAccessLayer/Remote/FromFile/ReportReaderWriter.cs +++ b/RFiDGear/DataAccessLayer/Remote/FromFile/ReportReaderWriter.cs @@ -105,6 +105,8 @@ public void SetReportField(string _field, string _value) ReportTemplatePath = System.IO.Path.Combine(appDataPath, reportTemplateTempFileName); var form = pdfDoc.Form; + pdfDoc.Info.Title = "RFiDGear Report"; + pdfDoc.Info.Author = "RFiDGear"; pdfDoc.Form.Fields[_field].Hidden = false; pdfDoc.Form.Fields[_field].ReadOnly = false; diff --git a/RFiDGear/DataAccessLayer/Remote/FromIO/ElatecNetProvider.cs b/RFiDGear/DataAccessLayer/Remote/FromIO/ElatecNetProvider.cs index 8bff7f5..f7b6d7f 100644 --- a/RFiDGear/DataAccessLayer/Remote/FromIO/ElatecNetProvider.cs +++ b/RFiDGear/DataAccessLayer/Remote/FromIO/ElatecNetProvider.cs @@ -234,16 +234,16 @@ private ERROR readWriteAccessOnClassicSector(int sectorNumber, string aKey, stri } catch { - return ERROR.IOError; // IO ERROR + return ERROR.IOError; // IO ElatecError } } if(Sector.IsAuthenticated) { - return ERROR.NoError; //NO ERROR + return ERROR.NoError; //NO ElatecError } - return ERROR.AuthenticationError; // Auth ERROR + return ERROR.AuthenticationError; // Auth ElatecError } #endregion @@ -262,7 +262,7 @@ public override ERROR ReadMifareUltralightSinglePage(int _pageNo) /// /// /// - /// ERROR Level + /// ElatecError Level public override ERROR GetMiFareDESFireChipAppIDs(string _appMasterKey, DESFireKeyType _keyTypeAppMasterKey) { if (DesfireChip == null) @@ -306,7 +306,7 @@ public override ERROR AuthToMifareDesfireApplication(string _applicationMasterKe _applicationMasterKey, (byte)_keyNumber, (byte)(int)Enum.Parse(typeof(Elatec.NET.DESFireKeyType), Enum.GetName(typeof(RFiDGear.DataAccessLayer.DESFireKeyType), _keyType)), - 1) == true ? ERROR.NoError : ERROR.NotAllowed; + 1) == true ? ERROR.NoError : ERROR.AuthenticationError; } else { diff --git a/RFiDGear/Model/GenericTaskModel.cs b/RFiDGear/Model/GenericTaskModel.cs index bd0b179..d4b740e 100644 --- a/RFiDGear/Model/GenericTaskModel.cs +++ b/RFiDGear/Model/GenericTaskModel.cs @@ -9,7 +9,7 @@ namespace RFiDGear.Model public interface IGenericTaskModel { /// - /// Indicates a Task Result and is interpreted by one of the following ERROR states: true = NoError, null = Empty, false = Everything else + /// Indicates a Task Result and is interpreted by one of the following ElatecError states: true = NoError, null = Empty, false = Everything else /// bool? IsTaskCompletedSuccessfully { get; set; } diff --git a/RFiDGear/Properties/AssemblyInfo.cs b/RFiDGear/Properties/AssemblyInfo.cs index f65875d..812064e 100644 --- a/RFiDGear/Properties/AssemblyInfo.cs +++ b/RFiDGear/Properties/AssemblyInfo.cs @@ -25,6 +25,6 @@ // // You can specify all the values or you can use the default the Revision and // Build Numbers by using the '*' as shown below: -[assembly: AssemblyVersion("1.1.*")] +[assembly: AssemblyVersion("1.2.*")] [assembly: Guid("a34bc413-e349-4fd1-8b90-2eb95a333436")] [assembly: NeutralResourcesLanguage("")] diff --git a/RFiDGear/RFiDGear.csproj.user b/RFiDGear/RFiDGear.csproj.user index b634f8f..e3a899a 100644 --- a/RFiDGear/RFiDGear.csproj.user +++ b/RFiDGear/RFiDGear.csproj.user @@ -1,7 +1,7 @@  - REPORTTARGETPATH="C:\temp\test file.pdf" AUTORUN=1 %24JobNumber=1234 %24CardType= + REPORTTARGETPATH="C:\temp\test file.pdf" AUTORUN=0 %24JobNumber=1234 %24CardType= D:\Seafile\Dokumente Privat\Steven\Projekte\Software\Windows\RFIDGear\RFiDGear\bin\Debug\ diff --git a/RFiDGear/View/AboutView.xaml b/RFiDGear/View/AboutView.xaml index 9baffe5..2aaceec 100644 --- a/RFiDGear/View/AboutView.xaml +++ b/RFiDGear/View/AboutView.xaml @@ -65,6 +65,8 @@ Grid.Row="3" Grid.Column="1" Width="90" + Height="26" + Padding="5,2" Margin="0,8,0,8" HorizontalAlignment="Center" VerticalAlignment="Stretch" diff --git a/RFiDGear/View/SettingsView/SettingsTabPages/TabPageMiscReaderSettingsView.xaml b/RFiDGear/View/SettingsView/SettingsTabPages/TabPageMiscReaderSettingsView.xaml index 718c2fd..60f7770 100644 --- a/RFiDGear/View/SettingsView/SettingsTabPages/TabPageMiscReaderSettingsView.xaml +++ b/RFiDGear/View/SettingsView/SettingsTabPages/TabPageMiscReaderSettingsView.xaml @@ -59,7 +59,7 @@ - +