From 0e64bb90686ff23e42b1340628ca7e0d4431a5aa Mon Sep 17 00:00:00 2001 From: Luc Vandenbroucke Date: Thu, 16 May 2024 16:14:31 +0200 Subject: [PATCH] problem detect com --- eDosStation/Settings.xaml.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/eDosStation/Settings.xaml.cs b/eDosStation/Settings.xaml.cs index 78aadd3..068b336 100644 --- a/eDosStation/Settings.xaml.cs +++ b/eDosStation/Settings.xaml.cs @@ -70,9 +70,7 @@ namespace eDosStation thisStation.AllowMultipleEPD = cbAllowMultipleEPD.IsChecked != null ? cbAllowMultipleEPD.IsChecked.Value : false; - - thisStation.WriteConfig32 = cbWriteConfig32.IsChecked != null ? cbWriteConfig32.IsChecked.Value : false; - + //thisStation.WriteConfig32 = cbWriteConfig32.IsChecked != null ? cbWriteConfig32.IsChecked.Value : false; thisStation.Update(); this.Close(); if (thisStation.Error > 0) @@ -88,9 +86,16 @@ namespace eDosStation private void Window_Loaded(object sender, RoutedEventArgs e) { - string eDosCom = devcon.FindEdosCom(); + string eDosCom = null; + try { + eDosCom = devcon.FindEdosCom(); + } + catch { } + try + { + using (var a = new LSWDesfirePublic.CCard()) { a.GetReaderList();