Skip to content

Commit

Permalink
updating and splash test screen remove
Browse files Browse the repository at this point in the history
+ updated itext librarys
+ removed "test" splash screen on "remove tasks" button
+ changed to .net 4.7
  • Loading branch information
c3rebro committed Jul 8, 2022
1 parent 9e33e08 commit e462d2c
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public ObservableCollection<string> GetReportFields()
{
PdfFormField _fieldValue = _form.Value;
temp.Add(_form.Key);

}

}
Expand Down
5 changes: 5 additions & 0 deletions RFiDGear/DataAccessLayer/Remote/FromIO/RFiDDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public RFiDDevice(ReaderTypes _readerType = ReaderTypes.None)

readerDevice.ReadChipPublic();
}

AppIDList = new uint[0];
}
}
catch (Exception e)
Expand Down Expand Up @@ -187,6 +189,9 @@ public ERROR ReadChipPublic()
//CardInfo = new CARD_INFO((CARD_TYPE)Enum.Parse(typeof(CARD_TYPE), card.Type), card.ChipIdentifier);
//readerUnit.Disconnect();
GenericChip = new GenericChipModel(card.ChipIdentifier, (CARD_TYPE)Enum.Parse(typeof(CARD_TYPE), card.Type));
//ISO15693Commands commands = card.Commands as ISO15693Commands;
//SystemInformation si = commands.GetSystemInformation();
//var block=commands.ReadBlock(21, 4);
return ERROR.NoError;
}
catch (Exception e) {
Expand Down
3 changes: 2 additions & 1 deletion RFiDGear/Model/MifareDesfire/MifareDesfireChipModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ namespace RFiDGear.Model
/// </summary>
public class MifareDesfireChipModel : GenericChipModel
{
private readonly List<MifareDesfireAppModel> _appList = new List<MifareDesfireAppModel>();

public List<MifareDesfireAppModel> AppList
{
get { return _appList; }
set { _appList = value; }
}
private List<MifareDesfireAppModel> _appList;

public MifareDesfireChipModel()
{
Expand Down
47 changes: 26 additions & 21 deletions RFiDGear/RFiDGear.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@
<StartAction>Project</StartAction>
</PropertyGroup>
<ItemGroup>
<Reference Include="BouncyCastle.Crypto, Version=1.8.9.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
<HintPath>..\packages\Portable.BouncyCastle.1.8.9\lib\net40\BouncyCastle.Crypto.dll</HintPath>
<Reference Include="BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
<HintPath>..\packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll</HintPath>
</Reference>
<Reference Include="Common.Logging, Version=3.4.1.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
<HintPath>..\packages\Common.Logging.3.4.1\lib\net40\Common.Logging.dll</HintPath>
</Reference>
<Reference Include="Common.Logging.Core, Version=3.4.1.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
<HintPath>..\packages\Common.Logging.Core.3.4.1\lib\net40\Common.Logging.Core.dll</HintPath>
</Reference>
<Reference Include="CommonServiceLocator, Version=2.0.6.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
<HintPath>..\packages\CommonServiceLocator.2.0.6\lib\net47\CommonServiceLocator.dll</HintPath>
Expand All @@ -74,33 +80,32 @@
<Reference Include="Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL">
<HintPath>..\packages\Ionic.Zip-1.9.1.8.1.9.1.8\lib\Ionic.Zip.dll</HintPath>
</Reference>
<Reference Include="itext.barcodes, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.barcodes.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
<Reference Include="itext.barcodes, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.barcodes.dll</HintPath>
</Reference>
<Reference Include="itext.forms, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.forms.dll</HintPath>
<Reference Include="itext.forms, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.forms.dll</HintPath>
</Reference>
<Reference Include="itext.io, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.io.dll</HintPath>
<Reference Include="itext.io, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.io.dll</HintPath>
</Reference>
<Reference Include="itext.kernel, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.kernel.dll</HintPath>
<Reference Include="itext.kernel, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.kernel.dll</HintPath>
</Reference>
<Reference Include="itext.layout, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.layout.dll</HintPath>
<Reference Include="itext.layout, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.layout.dll</HintPath>
</Reference>
<Reference Include="itext.pdfa, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.pdfa.dll</HintPath>
<Reference Include="itext.pdfa, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.pdfa.dll</HintPath>
</Reference>
<Reference Include="itext.sign, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.sign.dll</HintPath>
<Reference Include="itext.sign, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.sign.dll</HintPath>
</Reference>
<Reference Include="itext.styledxmlparser, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.styledxmlparser.dll</HintPath>
<Reference Include="itext.styledxmlparser, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.styledxmlparser.dll</HintPath>
</Reference>
<Reference Include="itext.svg, Version=7.1.14.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.14\lib\net40\itext.svg.dll</HintPath>
<Reference Include="itext.svg, Version=7.1.17.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<HintPath>..\packages\itext7.7.1.17\lib\net45\itext.svg.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
Expand Down
17 changes: 10 additions & 7 deletions RFiDGear/ViewModel/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -954,12 +954,6 @@ private void OnNewResetTaskStatusCommand()
private void OnNewRemoveAllTasksCommand()
{
taskHandler.TaskCollection.Clear();

Dialogs.Add(new SplashScreenViewModel() {
Caption = "test",
OnOk = (sender) => { sender.Close(); },

});
}

/// <summary>
Expand Down Expand Up @@ -1054,7 +1048,8 @@ private void OnNewWriteToChipOnceCommand(bool _runSelectedOnly = false)
Task thread = new Task(() =>
{
GenericChipModel GenericChip = new GenericChipModel("", CARD_TYPE.Unspecified);
MifareDesfireChipModel DesfireChip = new MifareDesfireChipModel("", CARD_TYPE.Unspecified); ;
MifareDesfireChipModel DesfireChip = new MifareDesfireChipModel("", CARD_TYPE.Unspecified);
MifareClassicChipModel ClassicChip = new MifareClassicChipModel("", CARD_TYPE.Unspecified);

try
{
Expand All @@ -1073,6 +1068,14 @@ private void OnNewWriteToChipOnceCommand(bool _runSelectedOnly = false)
if(GenericChip.CardType == CARD_TYPE.DESFireEV1 || GenericChip.CardType == CARD_TYPE.DESFireEV2)
{
DesfireChip = new MifareDesfireChipModel(GenericChip.UID, GenericChip.CardType);
DesfireChip.AppList = new List<MifareDesfireAppModel>();
if (device.AppIDList.Any())
{
foreach (uint appID in device.AppIDList)
{
DesfireChip.AppList.Add(new MifareDesfireAppModel(appID));
}
}
device.GetMiFareDESFireChipAppIDs();
}
}
Expand Down
12 changes: 12 additions & 0 deletions RFiDGear/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
<assemblyIdentity name="CommonServiceLocator" publicKeyToken="489b6accfaf20ef0" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.6.0" newVersion="2.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="BouncyCastle.Crypto" publicKeyToken="0e99375e54769942" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.9.0.0" newVersion="1.9.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.4.0.0" newVersion="3.4.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Common.Logging.Core" publicKeyToken="af08829b84f0328e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.4.0.0" newVersion="3.4.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
8 changes: 4 additions & 4 deletions RFiDGear/packages.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Common.Logging" version="3.4.1" targetFramework="net461" />
<package id="Common.Logging.Core" version="3.4.1" targetFramework="net461" />
<package id="Common.Logging" version="3.4.1" targetFramework="net472" />
<package id="Common.Logging.Core" version="3.4.1" targetFramework="net472" />
<package id="CommonServiceLocator" version="2.0.6" targetFramework="net472" />
<package id="DotNetZip.Reduced" version="1.9.1.8" targetFramework="net452" />
<package id="Ionic.Zip-1.9.1.8" version="1.9.1.8" targetFramework="net472" />
<package id="itext7" version="7.1.14" targetFramework="net461" />
<package id="itext7" version="7.1.17" targetFramework="net472" />
<package id="Microsoft.CSharp" version="4.7.0" targetFramework="net461" />
<package id="MvvmLightLibs" version="5.4.1.1" targetFramework="net461" />
<package id="Portable.BouncyCastle" version="1.8.9" targetFramework="net461" />
<package id="Portable.BouncyCastle" version="1.9.0" targetFramework="net472" />
</packages>

0 comments on commit e462d2c

Please sign in to comment.