OmagCut :
- Corretta visualizzazione errori.
This commit is contained in:
@@ -50,7 +50,7 @@ Public Class AlarmsPageUC
|
||||
m_CurrentMachine = m_MainWindow.m_CurrentMachine
|
||||
|
||||
If Not m_MainWindow.m_bNCLink = 0 Then
|
||||
ErrorLstBx.ItemsSource = m_CN.sz_NC_error_messages
|
||||
'ErrorLstBx.ItemsSource = m_CN.sz_NC_error_messages
|
||||
End If
|
||||
|
||||
' Aggiorno lista delle lame per pagina macchina in cui scegliere quella corrente
|
||||
|
||||
+11
-1
@@ -1,5 +1,6 @@
|
||||
Imports System.Windows.Threading
|
||||
Imports System.Globalization
|
||||
Imports System.Collections.ObjectModel
|
||||
Imports EgtUILib
|
||||
|
||||
Public Class CNCommunication
|
||||
@@ -25,6 +26,9 @@ Public Class CNCommunication
|
||||
Private m_bNewVarData As Boolean = False
|
||||
Private m_bTimerBusy As Boolean = False
|
||||
|
||||
' Lista errori
|
||||
Friend ErrorList As New ObservableCollection(Of String)
|
||||
|
||||
' Timer
|
||||
Private m_RefreshTimer As New DispatcherTimer
|
||||
|
||||
@@ -253,7 +257,13 @@ Public Class CNCommunication
|
||||
End If
|
||||
|
||||
If m_CN.b_NC_error Then
|
||||
|
||||
ErrorList.Clear()
|
||||
If m_CN.sz_NC_error_messages.Count > 0 Then
|
||||
For Each Item In m_CN.sz_NC_error_messages
|
||||
ErrorList.Add(Item)
|
||||
Next
|
||||
m_AlarmsPage.ErrorLstBx.ItemsSource = ErrorList
|
||||
End If
|
||||
m_CN.b_NC_error = False
|
||||
m_AlarmsPage.NcError()
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user