0b04ea30e5
- aggiunta toolbar BeamWall per comandi comuni alle due opzioni.
28 lines
894 B
VB.net
28 lines
894 B
VB.net
Imports System.IO
|
|
Imports EgtUILib
|
|
|
|
Public Class BeamWallPanelVM
|
|
|
|
Private m_ButtonList As New List(Of ButtonItem)
|
|
Public ReadOnly Property ButtonList As List(Of ButtonItem)
|
|
Get
|
|
Return m_ButtonList
|
|
End Get
|
|
End Property
|
|
|
|
Sub New()
|
|
' Se attivo Beam o Wall, inizializzo i bottoni leggendoli da file ini
|
|
If IniFile.IsActiveBeam() Or IniFile.IsActiveWall() Then
|
|
GetPrivateProfileString( S_BEAMWALL, K_BEAMWALLBASEDIR, "", m_sBeamWallDirPath)
|
|
' Inizializzo i bottoni leggendoli da file ini
|
|
Dim BtnIndex As Integer = 1
|
|
Dim CurrBtn As ButtonItem = Nothing
|
|
While GetPrivateProfileButton( S_BEAMWALL, K_BEAMWALLBUTTON & BtnIndex, IniFile.m_sBeamWallDirPath, CurrBtn)
|
|
m_ButtonList.Add(CurrBtn)
|
|
BtnIndex += 1
|
|
End While
|
|
End If
|
|
End Sub
|
|
|
|
End Class
|