Compare commits

..

24 Commits

Author SHA1 Message Date
NicolaP 6f1e05aaa3 Aggiunta disegno matita 2022-07-21 19:31:28 +02:00
NicolaP d2925af06b Merge branch 'master' into develop 2022-06-27 09:54:07 +02:00
NicolaP be067aa785 Merge branch 'feature/Manage_Multi_Istances' 2022-06-27 09:43:58 +02:00
NicolaP cdf98ecff5 Passo alla libreria il nome dello Users 2022-06-20 15:00:16 +02:00
NicolaP f952167d5d Avvio il timer per il refresch della lista 2022-06-15 18:17:53 +02:00
NicolaP 5f29f5821a Merge branch 'feature/CapsLock' into feature/Manage_Multi_Istances 2022-06-15 15:20:47 +02:00
NicolaP ecc0dc3a4f Lettura da ini CapsLock 2022-06-13 18:12:39 +02:00
NicolaP 2a3656fb55 Merge branch 'master' into develop 2022-06-13 13:31:58 +02:00
DarioS d5fdf246a0 OmagPHOTO 2.4f1 :
- aggiunta gestione chiave di rete da INI ([General] NetKey=1).
2022-06-06 11:10:20 +02:00
NicolaP c0af5e5754 Aggiornamento versione 2.4e1 2022-05-02 17:08:41 +02:00
NicolaP d9da37444d Merge branch 'Features/New_Field_Block' 2022-03-15 14:30:13 +01:00
NicolaP 9d5ddf60ff Aggiornamento versione 2022-03-15 14:29:50 +01:00
NicolaP d5368ce1e4 Aggiornamento versione 2022-03-15 14:29:10 +01:00
NicolaP cf4ee52db4 Nuova gestione (NomeBlocco-nn) 2022-03-10 20:41:29 +01:00
DarioS 0c0c0acc07 OmagPHOTO 2.4b3 :
- ricompilazione con cambio versione.
2022-02-27 16:28:10 +01:00
DarioS f932a3095a OmagPHOTO 2.4b1 :
- ricompilazione con cambio versione e nuova versione richiesta di licenza.
2022-02-17 11:57:31 +01:00
NicolaP 0f259e7a63 Aggiornamento versione 2.3j3 2021-10-21 15:04:33 +02:00
NicolaP 3ee156e26c Configurazione inserimento automatico nuvo Id 2021-10-21 14:20:07 +02:00
NicolaP 8cd6c20c98 Merge remote-tracking branch 'origin/master' 2021-10-18 20:37:35 +02:00
NicolaP 51e81a57ad Eliminato il refresh della lista 2021-10-18 20:37:08 +02:00
DarioS 79c24ff113 OmagPHOTO 2.3j2 :
- ricompilazione con cambio versione.
2021-10-15 18:01:51 +02:00
NicolaP f1d1c14e44 Aggiornamento versione 2021-10-11 19:08:14 +02:00
NicolaP 7e0a9331bb Merge commit '131a5545684f81a16674f15737c08a32cdf0007f' 2021-09-22 19:37:36 +02:00
NicolaP 8f4f8c75a8 Merge branch 'feature/NicolaP' 2021-09-17 19:40:46 +02:00
6 changed files with 52 additions and 8 deletions
+3
View File
@@ -18,6 +18,7 @@ Module ConstIni
Public Const S_GENERAL As String = "General"
Public Const K_DEBUG As String = "Debug"
Public Const K_LICENCE As String = "Licence"
Public Const K_NETKEY As String = "NetKey"
Public Const K_USERLEVEL As String = "UserLevel"
Public Const K_MAXINST As String = "MaxInstances"
Public Const K_INSTANCES As String = "Instances"
@@ -35,6 +36,8 @@ Module ConstIni
Public Const K_SUPPORT As String = "Support"
Public Const K_PHOTODIR As String = "PhotoDir"
Public Const K_CAMERALINK As String = "CameraLink"
Public Const K_LASTID As String = "LastId"
Public Const K_CAPSLOCK As String = "CapsLock"
Public Const S_PRINTER As String = "Printer"
Public Const K_TEMPLATE As String = "Template"
+36 -2
View File
@@ -136,6 +136,30 @@ Public Class MainWindowM
End Get
End Property
Private m_EnableTextId As Boolean = True
Public ReadOnly Property EnableTextId As Boolean
Get
Return m_EnableTextId
End Get
End Property
Private m_LastId As Integer = 10000
Public Property nLastId As Integer
Get
Return m_LastId
End Get
Set(value As Integer)
m_LastId = value
End Set
End Property
Private m_bCapsLock As Boolean
Public ReadOnly Property bCapsLock As Boolean
Get
Return m_bCapsLock
End Get
End Property
#End Region ' FIELDS
#Region "CONSTRUCTOR"
@@ -175,9 +199,11 @@ Public Class MainWindowM
Dim sKey As String = String.Empty
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
EgtSetKey(sKey)
Dim bNetHwKey As Boolean = ( GetMainPrivateProfileInt(S_GENERAL, K_NETKEY, 0) = 1)
EgtSetNetHwKey( bNetHwKey)
' Recupero livello e opzioni della chiave
Dim bKey As Boolean = EgtGetKeyLevel(9423, 2309, 1, m_nKeyLevel) And
EgtGetKeyOptions(9423, 2309, 1, m_nKeyOptions)
Dim bKey As Boolean = EgtGetKeyLevel(9423, 2407, 1, m_nKeyLevel) And
EgtGetKeyOptions(9423, 2407, 1, m_nKeyOptions)
' Verifico abilitazione prodotto
Dim bProd As Boolean = GetKeyOption(KEY_OPT.PHOTO_BASE)
' Inizializzazione generale di EgtInterface
@@ -244,24 +270,32 @@ Public Class MainWindowM
GetMainPrivateProfileString(S_PRINTER, K_ZEBRAUTILITIES, System.AppDomain.CurrentDomain.BaseDirectory & "ZebraPrinterUtilitiesR32.exe", m_ZebraUtilitiesExe)
' verifico che sia abilitata la stampante con flag
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
If Not ManageDb.ConnectToDb(m_sPhotoDir & "\" & DB_FILENAME) Then
EgtOutLog("Error connecting to DB")
MessageBox.Show(EgtMsg(MSG_OMAGPHOTO + 1) & EgtMsg(MSG_OMAGPHOTO + 2), EgtMsg(MSG_EGTMSGBOX + 15), MessageBoxButton.OK, MessageBoxImage.Error)
End
End If
Dim sLastBlock As String = String.Empty
' Info su opzioni chiave
EgtOutLog("KeyOptions : " & bKey.ToString() & " " & m_nKeyOptions.ToString() & " " & bProd.ToString())
' Imposto parametri EgtPHOTOLib
EgtPHOTOLib.MainData.SetConfigDir(m_sConfigDir)
EgtPHOTOLib.MainData.SetKeyLevel(m_nKeyLevel)
EgtPHOTOLib.MainData.SetKeyOptions(m_nKeyOptions)
EgtPHOTOLib.MainData.SetUser(Environment.MachineName & "\" & Environment.UserName & " (" & nInstance.ToString() & ")")
EgtPHOTOLib.MainData.SetPhotoDir(m_sPhotoDir)
EgtPHOTOLib.MainData.SetBackUpDir(m_sBackUpDir)
EgtPHOTOLib.MainData.SetTemplateFilePrinter(m_TemplateFilePrinter)
EgtPHOTOLib.MainData.SetDataFilePrinter(m_DatFilePrinter)
EgtPHOTOLib.MainData.SetZebraPrinterExe(m_ZebraUtilitiesExe)
EgtPHOTOLib.MainData.SetPrinterVisibility(m_PrinterIsVisible)
EgtPHOTOLib.MainData.SetCapsLock(m_bCapsLock)
If GetMainPrivateProfileString(S_GENERAL, "LastBlock", "", sLastBlock) <> 0 Then EgtPHOTOLib.MainData.SetLastBlock(sLastBlock)
Dim sIdKey As String = String.Empty
EgtGetKeyInfo(sIdKey)
EgtPHOTOLib.MainData.SetKey(sIdKey)
+5
View File
@@ -125,6 +125,11 @@ Public Class MainWindowVM
EgtPHOTOLib.PhotoMap.refOptionPanelVM.Ok(Nothing)
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
EgtSetCurrentContext(Map.refSceneHostVM.MainScene.GetCtx())
' Chiudo il gestore della macchina fotografica
+4 -4
View File
@@ -17,9 +17,9 @@ Imports System.Windows
<Assembly: AssemblyTitle("OmagPHOTOR32.exe")>
<Assembly: AssemblyDescription("OmagPHOTO 32 bit")>
#End If
<Assembly: AssemblyCompany("EgalTech s.r.l.")>
<Assembly: AssemblyCompany("Egalware s.r.l.")>
<Assembly: AssemblyProduct("OmagPHOTO")>
<Assembly: AssemblyCopyright("Copyright © 2017-2021 by EgalTech s.r.l.")>
<Assembly: AssemblyCopyright("Copyright © 2017-2022 by Egalware s.r.l.")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(false)>
@@ -59,5 +59,5 @@ Imports System.Windows
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("2.3.9.3")>
<Assembly: AssemblyFileVersion("2.3.9.3")>
<Assembly: AssemblyVersion("2.4.7.1")>
<Assembly: AssemblyFileVersion("2.4.7.1")>
+4 -2
View File
@@ -55,8 +55,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="EgtPHOTOLib, Version=2.3.1.1, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<Reference Include="EgtPHOTOLib">
<HintPath>..\..\EgtProg\Dll32\EgtPHOTOLib.dll</HintPath>
</Reference>
<Reference Include="EgtUILib, Version=2.3.4.5, Culture=neutral, processorArchitecture=MSIL">
@@ -217,6 +216,9 @@
<ItemGroup>
<Resource Include="Resources\TopCommandBar\Search.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\InstrumentPanel\Matitina.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<PropertyGroup>
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\OmagPHOTO\OmagPHOTOR32.exe
Binary file not shown.

After

Width:  |  Height:  |  Size: 746 B