Skip to content

Commit

Permalink
Removed PCSC Support and LibLogicalAccess Dependency
Browse files Browse the repository at this point in the history
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
  • Loading branch information
c3rebro committed Feb 14, 2023
1 parent 6dd27bf commit 5bb3f93
Show file tree
Hide file tree
Showing 32 changed files with 230 additions and 158 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions RFiDGear/DataAccessLayer/Remote/FromIO/ElatecNetProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -262,7 +262,7 @@ public override ERROR ReadMifareUltralightSinglePage(int _pageNo)
/// </summary>
/// <param name="_appMasterKey"></param>
/// <param name="_keyTypeAppMasterKey"></param>
/// <returns>ERROR Level</returns>
/// <returns>ElatecError Level</returns>
public override ERROR GetMiFareDESFireChipAppIDs(string _appMasterKey, DESFireKeyType _keyTypeAppMasterKey)
{
if (DesfireChip == null)
Expand Down Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion RFiDGear/Model/GenericTaskModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace RFiDGear.Model
public interface IGenericTaskModel
{
/// <summary>
/// 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
/// </summary>
bool? IsTaskCompletedSuccessfully { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion RFiDGear/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]
2 changes: 1 addition & 1 deletion RFiDGear/RFiDGear.csproj.user
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>REPORTTARGETPATH="C:\temp\test file.pdf" AUTORUN=1 %24JobNumber=1234 %24CardType=</StartArguments>
<StartArguments>REPORTTARGETPATH="C:\temp\test file.pdf" AUTORUN=0 %24JobNumber=1234 %24CardType=</StartArguments>
<StartWorkingDirectory>D:\Seafile\Dokumente Privat\Steven\Projekte\Software\Windows\RFIDGear\RFiDGear\bin\Debug\</StartWorkingDirectory>
</PropertyGroup>
<PropertyGroup>
Expand Down
2 changes: 2 additions & 0 deletions RFiDGear/View/AboutView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<ComboBox
Grid.Row="1"
Grid.Column="1"
Height="auto"
Height="26"
Margin="8,7,8,3"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Expand Down
9 changes: 6 additions & 3 deletions RFiDGear/View/SettingsView/SetupView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
Grid.Row="0"
Grid.Column="1"
Width="140"
Height="auto"
Height="26"
Padding="5,2"
Margin="8,0,4,8"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Expand All @@ -64,7 +65,8 @@
Grid.Row="0"
Grid.Column="2"
Width="140"
Height="auto"
Height="26"
Padding="5,2"
Margin="4,0,4,8"
VerticalAlignment="Bottom"
HorizontalAlignment="Center"
Expand All @@ -74,7 +76,8 @@
Grid.Row="0"
Grid.Column="3"
Width="160"
Height="auto"
Height="26"
Padding="5,2"
Margin="4,0,8,8"
VerticalAlignment="Bottom"
HorizontalAlignment="Left"
Expand Down
6 changes: 6 additions & 0 deletions RFiDGear/View/TaskViews/CommonTask/CommonTaskView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
<ComboBox
Grid.Row="0"
Grid.Column="1"
Height="26"
Margin="8,7,8,0"
VerticalAlignment="Stretch"
VerticalContentAlignment="Center"
Expand Down Expand Up @@ -210,6 +211,7 @@
<ComboBox
Grid.Column="1"
Margin="8,7,8,3"
Height="26"
ScrollViewer.VerticalScrollBarVisibility="Visible"
VerticalAlignment="Stretch"
ItemsSource="{dal:Enumerate {x:Type dal:ERROR}}"
Expand Down Expand Up @@ -251,6 +253,8 @@
Grid.Row="0"
Grid.Column="0"
Width="140"
Height="26"
Padding="5,2"
Margin="9,8,8,8"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Expand All @@ -261,6 +265,8 @@
Grid.Row="0"
Grid.Column="0"
Width="140"
Height="26"
Padding="5,2"
Margin="157,8,8,8"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,25 @@
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="42" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label
Grid.Row="0"
Grid.Column="0"
Height="26"
Margin="8,6,10,0"
VerticalAlignment="Top"
Margin="8,0,8,8"
VerticalAlignment="Center"
HorizontalContentAlignment="Stretch"
Content="{Binding LocalizationResourceSet, ConverterParameter=labelSelectLogicFunction, Converter={StaticResource Localization}}"
DataContext="{Binding}"
Foreground="Black" />
<ComboBox
Grid.Row="0"
Height="26"
Grid.Column="1"
Margin="8,0,8,8"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
VerticalAlignment="Center"
ItemsSource="{dal:Enumerate {x:Type dal:LOGIC_STATE}}"
SelectedItem="{Binding SelectedLogicCondition, ConverterParameter={x:Type dal:LOGIC_STATE}, Converter={StaticResource Localization}, Mode=TwoWay}" />
</Grid>
Expand Down Expand Up @@ -113,6 +114,7 @@
Grid.Row="0"
Grid.Column="1"
Margin="8,0,8,8"
Height="26"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
IsEnabled="{Binding IsLogicFuncTaskCountFuncEnabled}"
Expand All @@ -133,6 +135,7 @@
Grid.Row="1"
Grid.Column="1"
Margin="8,0,8,8"
Height="26"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
IsEnabled="{Binding IsLogicFuncTaskCountFuncEnabled}"
Expand All @@ -153,6 +156,7 @@
Grid.Row="2"
Grid.Column="1"
Margin="8,0,8,8"
Height="26"
VerticalAlignment="Top"
VerticalContentAlignment="Center"
HorizontalContentAlignment="Left"
Expand Down Expand Up @@ -187,6 +191,8 @@
</Grid.RowDefinitions>
<Button
Grid.Column="1"
Height="26"
Padding="5,2"
VerticalAlignment="Center"
HorizontalAlignment="Center"
VerticalContentAlignment="Center"
Expand All @@ -196,6 +202,8 @@
<Button
HorizontalAlignment="Center"
VerticalAlignment="Center"
Height="26"
Padding="5,2"
VerticalContentAlignment="Center"
HorizontalContentAlignment="Left"
Command="{Binding AddEditCheckpointCommand}"
Expand Down Expand Up @@ -276,7 +284,6 @@
<DataTemplate>
<ComboBox
ItemsSource="{dal:Enumerate {x:Type dal:ERROR}}"

SelectedItem="{Binding ErrorLevel, ConverterParameter={x:Type dal:ERROR}, Converter={StaticResource Localization}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ScrollViewer.VerticalScrollBarVisibility="Visible"
FontFamily="Lucida Console">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
<Button
Grid.Column="1"
Margin="10,0,10,8"
Height="26"
Padding="5,2"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
VerticalContentAlignment="Center"
Expand Down Expand Up @@ -125,7 +127,8 @@
<Button
Grid.Row="1"
Grid.Column="1"
Height="auto"
Height="26"
Padding="5,2"
Margin="10,0,8,10"
VerticalAlignment="Bottom"
HorizontalAlignment="Center"
Expand All @@ -134,6 +137,8 @@
<Button
Grid.Row="1"
Grid.Column="0"
Height="26"
Padding="5,2"
Margin="10,0,10,10"
VerticalAlignment="Bottom"
HorizontalAlignment="Center"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<ComboBox
xmlns:dlgs="clr-namespace:MvvmDialogs.Behaviors;assembly=MVVMDialogs"
xmlns:local="clr-namespace:RFiDGear"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:v="clr-namespace:RFiDGear.View"
Grid.Row="0"
Grid.Column="1"
Margin="8,0,8,8"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
xmlns:dlgs="clr-namespace:MvvmDialogs.Behaviors;assembly=MVVMDialogs"
xmlns:local="clr-namespace:RFiDGear"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:v="clr-namespace:RFiDGear.View"
Grid.Row="0"
Grid.Column="1"
Height="26"
Margin="8,0,8,8"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ItemsSource="{dal:Enumerate {x:Type dal:CARD_TYPE}}"
SelectedItem="{Binding SelectedChipType, Converter={StaticResource Localization}, ConverterParameter={x:Type dal:CARD_TYPE}, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
ItemsSource="{dal:Enumerate {x:Type dal:CARD_TYPE}}"
SelectedItem="{Binding SelectedChipType, Converter={StaticResource Localization}, ConverterParameter={x:Type dal:CARD_TYPE}, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
<Label
Grid.Row="0"
Grid.Column="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
<ComboBox
Grid.Row="0"
Grid.Column="1"
Height="26"
Margin="8,7,8,0"
VerticalAlignment="Top"
VerticalContentAlignment="Center"
Expand Down Expand Up @@ -190,6 +191,7 @@
Content="{Binding LocalizationResourceSet, ConverterParameter=labelContentExecuteConditionTaskIndex, Converter={StaticResource Localization}}" />
<ComboBox
Grid.Column="1"
Height="26"
Margin="8,7,8,3"
ScrollViewer.VerticalScrollBarVisibility="Visible"
VerticalAlignment="Stretch"
Expand Down Expand Up @@ -231,6 +233,8 @@
<Button
Grid.Row="0"
Grid.Column="0"
Height="26"
Padding="5,2"
Width="140"
Margin="9,0,0,8"
HorizontalAlignment="Left"
Expand All @@ -240,6 +244,8 @@
IsDefault="True" />
<Button
Grid.Row="0"
Height="26"
Padding="5,2"
Grid.Column="0"
Width="140"
Margin="157,0,0,8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<ComboBox
Grid.Row="0"
Grid.Column="0"
Height="26"
Margin="8,8,8,8"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Expand Down Expand Up @@ -128,6 +129,7 @@
<ComboBox
Grid.Row="0"
Grid.Column="1"
Height="26"
Margin="8,7,8,0"
VerticalAlignment="Top"
VerticalContentAlignment="Center"
Expand Down Expand Up @@ -229,6 +231,7 @@
<ComboBox
Grid.Column="1"
Margin="8,7,8,3"
Height="26"
ScrollViewer.VerticalScrollBarVisibility="Auto"
VerticalAlignment="Stretch"
ItemsSource="{dal:Enumerate {x:Type dal:ERROR}}"
Expand Down Expand Up @@ -268,6 +271,8 @@
VerticalScrollBarVisibility="Visible" />
<Button
Grid.Row="0"
Height="26"
Padding="5,2"
Grid.Column="0"
Width="140"
Margin="9,0,0,8"
Expand All @@ -278,6 +283,8 @@
IsDefault="True" />
<Button
Grid.Row="0"
Height="26"
Padding="5,2"
Grid.Column="0"
Width="140"
Margin="157,0,0,8"
Expand Down
Loading

0 comments on commit 5bb3f93

Please sign in to comment.