From a26814685a8836aa1d0125fb429e2c3f2b5bd15a Mon Sep 17 00:00:00 2001 From: MrReSc Date: Wed, 15 Jan 2020 15:42:18 +0100 Subject: [PATCH] #60 fix --- IEC Mate/IEC Mate.csproj | 4 ++-- IEC Mate/MainWindow.xaml | 3 ++- IEC Mate/MainWindow.xaml.cs | 22 +++++++++++++++++++--- IEC Mate/Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/IEC Mate/IEC Mate.csproj b/IEC Mate/IEC Mate.csproj index f27bdcf..dab877e 100644 --- a/IEC Mate/IEC Mate.csproj +++ b/IEC Mate/IEC Mate.csproj @@ -28,7 +28,7 @@ AssemblyVersionAttribute None.None.Increment.DateStamp None.None.Increment.DateStamp - 1.0.1522.20015 + 1.0.1545.20015 C:\Users\r.scheidegger\Downloads\IEC Mate\ true Disk @@ -42,7 +42,7 @@ IEC-Mate Remo Scheidegger 19222 - 1.0.1522.20015 + 1.0.1545.20015 false true true diff --git a/IEC Mate/MainWindow.xaml b/IEC Mate/MainWindow.xaml index f206c02..79c2b5c 100644 --- a/IEC Mate/MainWindow.xaml +++ b/IEC Mate/MainWindow.xaml @@ -966,7 +966,8 @@ diff --git a/IEC Mate/MainWindow.xaml.cs b/IEC Mate/MainWindow.xaml.cs index 48e728e..e34bcaa 100644 --- a/IEC Mate/MainWindow.xaml.cs +++ b/IEC Mate/MainWindow.xaml.cs @@ -2059,7 +2059,22 @@ private void Btn_decode_Click(object sender, RoutedEventArgs e) { try { - var bitset = text_decode_out1.Text; + var bitset = String.Empty; + + if (text_decode_out1.Text.StartsWith("2#")) + { + bitset = text_decode_out1.Text; + } + + if (text_decode_out2.Text.StartsWith("2#")) + { + bitset = text_decode_out2.Text; + } + + if (text_decode.Text.StartsWith("2#")) + { + bitset = text_decode.Text; + } if (String.IsNullOrWhiteSpace(bitset)) { @@ -2304,6 +2319,7 @@ private void ShowDecodeResult(List list) //Akzentfarbe von Theme var accentColor = (Brush)converter.ConvertFromString(ThemeManager.GetResourceFromAppStyle(this, "AccentColor").ToString()); var accentColor2 = (Brush)converter.ConvertFromString(ThemeManager.GetResourceFromAppStyle(this, "AccentColor2").ToString()); + var stroke = (Brush)App.Current.Resources["GrayBrush5"]; //Alle Objekte von Grid var objects = grid_decoding.GetChildObjects(); @@ -2327,7 +2343,7 @@ private void ShowDecodeResult(List list) { Ellipse el = it as Ellipse; el.Fill = Brushes.Transparent; - el.Stroke = Brushes.Silver; + el.Stroke = stroke;// Brushes.Silver; } //Schriftfarbe abhängig von Theme einstellen @@ -2363,7 +2379,7 @@ private void ShowDecodeResult(List list) else { el.Fill = Brushes.Transparent; - el.Stroke = Brushes.Silver; + el.Stroke = stroke;//Brushes.Silver; } } } diff --git a/IEC Mate/Properties/AssemblyInfo.cs b/IEC Mate/Properties/AssemblyInfo.cs index 9694e2d..393797c 100644 --- a/IEC Mate/Properties/AssemblyInfo.cs +++ b/IEC Mate/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1522.20015")] -[assembly: AssemblyFileVersion("1.0.1522.20015")] +[assembly: AssemblyVersion("1.0.1545.20015")] +[assembly: AssemblyFileVersion("1.0.1545.20015")]