problem detect com

This commit is contained in:
Luc Vandenbroucke 2024-05-16 16:14:31 +02:00
parent 3d295abe86
commit 0e64bb9068

View file

@ -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();