Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f1e05aaa3 | |||
| d2925af06b | |||
| be067aa785 | |||
| cdf98ecff5 | |||
| f952167d5d | |||
| 5f29f5821a | |||
| ecc0dc3a4f | |||
| 2a3656fb55 | |||
| d5fdf246a0 |
@@ -18,6 +18,7 @@ Module ConstIni
|
|||||||
Public Const S_GENERAL As String = "General"
|
Public Const S_GENERAL As String = "General"
|
||||||
Public Const K_DEBUG As String = "Debug"
|
Public Const K_DEBUG As String = "Debug"
|
||||||
Public Const K_LICENCE As String = "Licence"
|
Public Const K_LICENCE As String = "Licence"
|
||||||
|
Public Const K_NETKEY As String = "NetKey"
|
||||||
Public Const K_USERLEVEL As String = "UserLevel"
|
Public Const K_USERLEVEL As String = "UserLevel"
|
||||||
Public Const K_MAXINST As String = "MaxInstances"
|
Public Const K_MAXINST As String = "MaxInstances"
|
||||||
Public Const K_INSTANCES As String = "Instances"
|
Public Const K_INSTANCES As String = "Instances"
|
||||||
@@ -36,6 +37,7 @@ Module ConstIni
|
|||||||
Public Const K_PHOTODIR As String = "PhotoDir"
|
Public Const K_PHOTODIR As String = "PhotoDir"
|
||||||
Public Const K_CAMERALINK As String = "CameraLink"
|
Public Const K_CAMERALINK As String = "CameraLink"
|
||||||
Public Const K_LASTID As String = "LastId"
|
Public Const K_LASTID As String = "LastId"
|
||||||
|
Public Const K_CAPSLOCK As String = "CapsLock"
|
||||||
|
|
||||||
Public Const S_PRINTER As String = "Printer"
|
Public Const S_PRINTER As String = "Printer"
|
||||||
Public Const K_TEMPLATE As String = "Template"
|
Public Const K_TEMPLATE As String = "Template"
|
||||||
|
|||||||
@@ -153,6 +153,13 @@ Public Class MainWindowM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bCapsLock As Boolean
|
||||||
|
Public ReadOnly Property bCapsLock As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bCapsLock
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region ' FIELDS
|
#End Region ' FIELDS
|
||||||
|
|
||||||
#Region "CONSTRUCTOR"
|
#Region "CONSTRUCTOR"
|
||||||
@@ -192,9 +199,11 @@ Public Class MainWindowM
|
|||||||
Dim sKey As String = String.Empty
|
Dim sKey As String = String.Empty
|
||||||
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
|
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
|
||||||
EgtSetKey(sKey)
|
EgtSetKey(sKey)
|
||||||
|
Dim bNetHwKey As Boolean = ( GetMainPrivateProfileInt(S_GENERAL, K_NETKEY, 0) = 1)
|
||||||
|
EgtSetNetHwKey( bNetHwKey)
|
||||||
' Recupero livello e opzioni della chiave
|
' Recupero livello e opzioni della chiave
|
||||||
Dim bKey As Boolean = EgtGetKeyLevel(9423, 2405, 1, m_nKeyLevel) And
|
Dim bKey As Boolean = EgtGetKeyLevel(9423, 2407, 1, m_nKeyLevel) And
|
||||||
EgtGetKeyOptions(9423, 2405, 1, m_nKeyOptions)
|
EgtGetKeyOptions(9423, 2407, 1, m_nKeyOptions)
|
||||||
' Verifico abilitazione prodotto
|
' Verifico abilitazione prodotto
|
||||||
Dim bProd As Boolean = GetKeyOption(KEY_OPT.PHOTO_BASE)
|
Dim bProd As Boolean = GetKeyOption(KEY_OPT.PHOTO_BASE)
|
||||||
' Inizializzazione generale di EgtInterface
|
' Inizializzazione generale di EgtInterface
|
||||||
@@ -261,6 +270,8 @@ Public Class MainWindowM
|
|||||||
GetMainPrivateProfileString(S_PRINTER, K_ZEBRAUTILITIES, System.AppDomain.CurrentDomain.BaseDirectory & "ZebraPrinterUtilitiesR32.exe", m_ZebraUtilitiesExe)
|
GetMainPrivateProfileString(S_PRINTER, K_ZEBRAUTILITIES, System.AppDomain.CurrentDomain.BaseDirectory & "ZebraPrinterUtilitiesR32.exe", m_ZebraUtilitiesExe)
|
||||||
' verifico che sia abilitata la stampante con flag
|
' verifico che sia abilitata la stampante con flag
|
||||||
m_PrinterIsVisible = (GetMainPrivateProfileInt(S_PRINTER, K_ENABLE_PRINTER, 0) = 1)
|
m_PrinterIsVisible = (GetMainPrivateProfileInt(S_PRINTER, K_ENABLE_PRINTER, 0) = 1)
|
||||||
|
' verifico che sia abilitata il CapsLock
|
||||||
|
m_bCapsLock = (GetMainPrivateProfileInt(S_GENERAL, K_CAPSLOCK, 0) = 1)
|
||||||
' Creo connessione al Db
|
' Creo connessione al Db
|
||||||
If Not ManageDb.ConnectToDb(m_sPhotoDir & "\" & DB_FILENAME) Then
|
If Not ManageDb.ConnectToDb(m_sPhotoDir & "\" & DB_FILENAME) Then
|
||||||
EgtOutLog("Error connecting to DB")
|
EgtOutLog("Error connecting to DB")
|
||||||
@@ -276,20 +287,22 @@ Public Class MainWindowM
|
|||||||
EgtPHOTOLib.MainData.SetConfigDir(m_sConfigDir)
|
EgtPHOTOLib.MainData.SetConfigDir(m_sConfigDir)
|
||||||
EgtPHOTOLib.MainData.SetKeyLevel(m_nKeyLevel)
|
EgtPHOTOLib.MainData.SetKeyLevel(m_nKeyLevel)
|
||||||
EgtPHOTOLib.MainData.SetKeyOptions(m_nKeyOptions)
|
EgtPHOTOLib.MainData.SetKeyOptions(m_nKeyOptions)
|
||||||
|
EgtPHOTOLib.MainData.SetUser(Environment.MachineName & "\" & Environment.UserName & " (" & nInstance.ToString() & ")")
|
||||||
EgtPHOTOLib.MainData.SetPhotoDir(m_sPhotoDir)
|
EgtPHOTOLib.MainData.SetPhotoDir(m_sPhotoDir)
|
||||||
EgtPHOTOLib.MainData.SetBackUpDir(m_sBackUpDir)
|
EgtPHOTOLib.MainData.SetBackUpDir(m_sBackUpDir)
|
||||||
EgtPHOTOLib.MainData.SetTemplateFilePrinter(m_TemplateFilePrinter)
|
EgtPHOTOLib.MainData.SetTemplateFilePrinter(m_TemplateFilePrinter)
|
||||||
EgtPHOTOLib.MainData.SetDataFilePrinter(m_DatFilePrinter)
|
EgtPHOTOLib.MainData.SetDataFilePrinter(m_DatFilePrinter)
|
||||||
EgtPHOTOLib.MainData.SetZebraPrinterExe(m_ZebraUtilitiesExe)
|
EgtPHOTOLib.MainData.SetZebraPrinterExe(m_ZebraUtilitiesExe)
|
||||||
EgtPHOTOLib.MainData.SetPrinterVisibility(m_PrinterIsVisible)
|
EgtPHOTOLib.MainData.SetPrinterVisibility(m_PrinterIsVisible)
|
||||||
|
EgtPHOTOLib.MainData.SetCapsLock(m_bCapsLock)
|
||||||
If GetMainPrivateProfileString(S_GENERAL, "LastBlock", "", sLastBlock) <> 0 Then EgtPHOTOLib.MainData.SetLastBlock(sLastBlock)
|
If GetMainPrivateProfileString(S_GENERAL, "LastBlock", "", sLastBlock) <> 0 Then EgtPHOTOLib.MainData.SetLastBlock(sLastBlock)
|
||||||
Dim sIdKey As String = String.Empty
|
Dim sIdKey As String = String.Empty
|
||||||
EgtGetKeyInfo(sIdKey)
|
EgtGetKeyInfo(sIdKey)
|
||||||
EgtPHOTOLib.MainData.SetKey(sIdKey)
|
EgtPHOTOLib.MainData.SetKey(sIdKey)
|
||||||
'' lancio il timer di aggiornamento dell'interfaccia, per la gestione di due OmagPHOTO che accedono allo stesso SQL
|
' lancio il timer di aggiornamento dell'interfaccia, per la gestione di due OmagPHOTO che accedono allo stesso SQL
|
||||||
' AddHandler m_RefreshTimer.Tick, AddressOf RefreshTimer_Tick
|
AddHandler m_RefreshTimer.Tick, AddressOf RefreshTimer_Tick
|
||||||
' m_RefreshTimer.Interval = TimeSpan.FromMilliseconds(2000)
|
m_RefreshTimer.Interval = TimeSpan.FromMilliseconds(2000)
|
||||||
' m_RefreshTimer.Start()
|
m_RefreshTimer.Start()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' per la gestione di due OmagPHOTO che accedono allo stesso SQL
|
' per la gestione di due OmagPHOTO che accedono allo stesso SQL
|
||||||
|
|||||||
@@ -125,6 +125,11 @@ Public Class MainWindowVM
|
|||||||
EgtPHOTOLib.PhotoMap.refOptionPanelVM.Ok(Nothing)
|
EgtPHOTOLib.PhotoMap.refOptionPanelVM.Ok(Nothing)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
' deseleziono la lastra corrente
|
||||||
|
If Not IsNothing(EgtPHOTOLib.PhotoMap.refProjectVM) AndAlso
|
||||||
|
Not IsNothing(EgtPHOTOLib.PhotoMap.refProjectVM.SelSlab) Then
|
||||||
|
EgtPHOTOLib.PhotoMap.refOptionPanelVM.Cancel(Nothing)
|
||||||
|
End If
|
||||||
' Imposto contesto principale
|
' Imposto contesto principale
|
||||||
EgtSetCurrentContext(Map.refSceneHostVM.MainScene.GetCtx())
|
EgtSetCurrentContext(Map.refSceneHostVM.MainScene.GetCtx())
|
||||||
' Chiudo il gestore della macchina fotografica
|
' Chiudo il gestore della macchina fotografica
|
||||||
|
|||||||
@@ -59,5 +59,5 @@ Imports System.Windows
|
|||||||
' by using the '*' as shown below:
|
' by using the '*' as shown below:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.4.5.1")>
|
<Assembly: AssemblyVersion("2.4.7.1")>
|
||||||
<Assembly: AssemblyFileVersion("2.4.5.1")>
|
<Assembly: AssemblyFileVersion("2.4.7.1")>
|
||||||
|
|||||||
@@ -216,6 +216,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Resources\TopCommandBar\Search.png" />
|
<Resource Include="Resources\TopCommandBar\Search.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\InstrumentPanel\Matitina.png" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\OmagPHOTO\OmagPHOTOR32.exe
|
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\OmagPHOTO\OmagPHOTOR32.exe
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 746 B |
Reference in New Issue
Block a user