diff --git a/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Manifest.cs b/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Manifest.cs index faa577f..0c4978d 100644 --- a/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Manifest.cs +++ b/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Manifest.cs @@ -59,6 +59,12 @@ public Manifest(string data) /// The base URI. public string BaseUri { get; private set; } + /// + /// Gets the base URI. + /// + /// The base URI. + public string VersionInfoText { get; private set; } + /// /// Gets the payload. /// @@ -102,6 +108,7 @@ private void Load(string data) RemoteConfigUri = xml.Root.Element("RemoteConfigUri").Value; BaseUri = xml.Root.Element("BaseUri").Value; Payloads = xml.Root.Elements("Payload").Select(x => x.Value).ToArray(); + VersionInfoText = xml.Root.Element("VersionInfoText").Value; } catch (Exception ex) { diff --git a/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Updater.cs b/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Updater.cs index dbf3cb1..aa90b38 100644 --- a/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Updater.cs +++ b/RFiDGear/3rdParty/RedCell/RedCell.Diagnostics.Update/Updater.cs @@ -48,6 +48,7 @@ public class Updater public bool AllowUpdate { get; set; } public bool IsUserNotified { get; set; } + public string UpdateInfoText { get; private set; } #endregion @@ -226,6 +227,7 @@ private void Check(object state) if (!AllowUpdate && !IsUserNotified) { IsUserNotified = true; + UpdateInfoText = this._remoteConfig.VersionInfoText; NewVersionAvailable(this, null); return; } diff --git a/RFiDGear/App.xaml b/RFiDGear/App.xaml index 85ebc4f..18410eb 100644 --- a/RFiDGear/App.xaml +++ b/RFiDGear/App.xaml @@ -27,6 +27,7 @@ + diff --git a/RFiDGear/DataAccessLayer/Remote/FromFile/SettingsReaderWriter.cs b/RFiDGear/DataAccessLayer/Remote/FromFile/SettingsReaderWriter.cs index 9992ec1..c70c642 100644 --- a/RFiDGear/DataAccessLayer/Remote/FromFile/SettingsReaderWriter.cs +++ b/RFiDGear/DataAccessLayer/Remote/FromFile/SettingsReaderWriter.cs @@ -23,6 +23,7 @@ public class SettingsReaderWriter : IDisposable private readonly int _updateInterval = 900; private readonly string _securityToken = "D68EF3A7-E787-4CC4-B020-878BA649B4CD"; private readonly string _payload = "update.zip"; + private readonly string _infoText = "Version Info\n\ngoes here! \n==>"; private readonly string _baseUri = @"https://github.com/c3rebro/RFiDGear/releases/latest/download/"; private readonly Version Version = Assembly.GetExecutingAssembly().GetName().Version; @@ -85,18 +86,21 @@ public SettingsReaderWriter() XmlElement SecurityTokenElem = doc.CreateElement("SecurityToken"); XmlElement BaseUriElem = doc.CreateElement("BaseUri"); XmlElement PayLoadElem = doc.CreateElement("Payload"); + XmlElement InfoTextElem = doc.CreateElement("VersionInfoText"); doc.DocumentElement.AppendChild(CheckIntervalElem); doc.DocumentElement.AppendChild(RemoteConfigUriElem); doc.DocumentElement.AppendChild(SecurityTokenElem); doc.DocumentElement.AppendChild(BaseUriElem); doc.DocumentElement.AppendChild(PayLoadElem); + doc.DocumentElement.AppendChild(InfoTextElem); CheckIntervalElem.InnerText = _updateInterval.ToString(); RemoteConfigUriElem.InnerText = _updateURL; SecurityTokenElem.InnerText = _securityToken; BaseUriElem.InnerText = _baseUri; PayLoadElem.InnerText = _payload; + InfoTextElem.InnerText = _infoText; doc.Save(Path.Combine(appDataPath, _updateConfigFileFileName)); } diff --git a/RFiDGear/DataAccessLayer/Remote/FromIO/RFiDDevice.cs b/RFiDGear/DataAccessLayer/Remote/FromIO/RFiDDevice.cs index b516442..014ba42 100644 --- a/RFiDGear/DataAccessLayer/Remote/FromIO/RFiDDevice.cs +++ b/RFiDGear/DataAccessLayer/Remote/FromIO/RFiDDevice.cs @@ -725,15 +725,15 @@ public ERROR WriteMiFareClassicWithMAD(int _madApplicationID, int _madStartSecto mlocation.MADApplicationID = (ushort)_madApplicationID; mlocation.UseMAD = _useMADToAuth; mlocation.Sector = _madStartSector; - - MifareAccessInfo aiToWrite = new MifareAccessInfoClass(); + + MifareAccessInfo aiToWrite = new MifareAccessInfoClass(); aiToWrite.UseMAD = _keyToWriteUseMAD; aiToWrite.MADKeyA.Value = _madAKeyToUse == _madAKeyToWrite ? madAKeyToUse.Value : madAKeyToWrite.Value; // only set new madkey if mad key has changed aiToWrite.MADKeyB.Value = _madBKeyToUse == _madBKeyToWrite ? madBKeyToUse.Value : madBKeyToWrite.Value; // only set new madkey if mad key has changed aiToWrite.KeyA.Value = _aKeyToUse == _aKeyToWrite ? mAKeyToUse.Value : mAKeyToWrite.Value; aiToWrite.KeyB.Value = _bKeyToUse == _bKeyToWrite ? mBKeyToUse.Value : mBKeyToWrite.Value; aiToWrite.MADGPB = _madGPB; - + var aiToUse = new MifareAccessInfoClass(); aiToUse.UseMAD = _useMADToAuth; aiToUse.KeyA = mAKeyToUse; diff --git a/RFiDGear/RFiDGear.csproj b/RFiDGear/RFiDGear.csproj index c03644e..1173b3f 100644 --- a/RFiDGear/RFiDGear.csproj +++ b/RFiDGear/RFiDGear.csproj @@ -200,6 +200,7 @@ + @@ -214,6 +215,9 @@ MainWindow.xaml + + UpdateNotifierView.xaml + Splash.xaml @@ -306,6 +310,10 @@ MSBuild:Compile Designer + + MSBuild:Compile + Designer + Designer MSBuild:Compile diff --git a/RFiDGear/View/Splash.xaml b/RFiDGear/View/Splash.xaml index 9ca8bcf..ef22bfb 100644 --- a/RFiDGear/View/Splash.xaml +++ b/RFiDGear/View/Splash.xaml @@ -3,8 +3,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:local="clr-namespace:RFiDGear.View" xmlns:gif="http://wpfanimatedgif.codeplex.com" + xmlns:local="clr-namespace:RFiDGear.View" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Width="600" Height="600" diff --git a/RFiDGear/View/TaskViews/RFIDTasks/MifareClassicTask/MifareClassicTaskTabPages/TabPageMifareClassicDataExplorerView.xaml b/RFiDGear/View/TaskViews/RFIDTasks/MifareClassicTask/MifareClassicTaskTabPages/TabPageMifareClassicDataExplorerView.xaml index 04d8629..d5abd8f 100644 --- a/RFiDGear/View/TaskViews/RFIDTasks/MifareClassicTask/MifareClassicTaskTabPages/TabPageMifareClassicDataExplorerView.xaml +++ b/RFiDGear/View/TaskViews/RFIDTasks/MifareClassicTask/MifareClassicTaskTabPages/TabPageMifareClassicDataExplorerView.xaml @@ -231,8 +231,8 @@ BindableSelectionStart="{Binding SelectedDataIndexStart, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" BorderThickness="0" FontFamily="Lucida Console" - IsFocused="{Binding IsFocused}" Text="{Binding DataAsHexString, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"> + <_3rdP:SelectionBindingTextBox.Style>