Integration 2.2g3 :
- aggiunta gestione modalità Cloud. Integration 2.2g4 : - aggiunto recupero codicie ISO in modalità Cloud.
This commit is contained in:
@@ -68,6 +68,11 @@ namespace ib.essetre.integration.egaltech
|
||||
if ( numBars == 0)
|
||||
return ;
|
||||
|
||||
// Se modalità Cloud, allora conta solo la prima barra
|
||||
bool bCloud = ( parameters.UIMode == InOutParameters.UIModes.CLOUD) ;
|
||||
if ( bCloud)
|
||||
numBars = 1 ;
|
||||
|
||||
// Numero di core logici da utilizzare (minimo tra presenti sul PC e imposti da INI)
|
||||
int nMaxThread = Math.Min( Environment.ProcessorCount, GetMaxInstances( parameters)) ;
|
||||
|
||||
@@ -166,6 +171,19 @@ namespace ib.essetre.integration.egaltech
|
||||
string BtlPath = GetBtlPath( DataDir, pattInfo) ;
|
||||
bool BtlOk = btlObject.WriteIntoFile( BtlPath, pattInfo.IsFromProject) ;
|
||||
|
||||
// Se modalità cloud, scrittura del file di punti
|
||||
if ( bCloud) {
|
||||
using ( var tw = new StreamWriter( Path.ChangeExtension( BtlPath, ".pnt"), false)) {
|
||||
for ( int j = 0 ; j < pattInfo.Cloud.Count() ; j++) {
|
||||
double dPosX = - pattInfo.Cloud[j].Y ;
|
||||
double dPosY = pattInfo.Cloud[j].X ;
|
||||
string sPosX = dPosX.ToString( "0.00", System.Globalization.CultureInfo.InvariantCulture) ;
|
||||
string sPosY = dPosY.ToString( "0.00", System.Globalization.CultureInfo.InvariantCulture) ;
|
||||
tw.WriteLine( sPosX + " " + sPosY) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Se scrittura Btl non riuscita
|
||||
if ( ! BtlOk) {
|
||||
// scrivo direttamente il file di errore
|
||||
@@ -481,7 +499,7 @@ namespace ib.essetre.integration.egaltech
|
||||
|
||||
// Lettura OutputFilename e scrittura nel parametro stringa Iso (caso UIModes.HIDDEN)
|
||||
if ( ! bErrors &&
|
||||
UIMode == InOutParameters.UIModes.HIDDEN) {
|
||||
( UIMode == InOutParameters.UIModes.HIDDEN || UIMode == InOutParameters.UIModes.CLOUD)) {
|
||||
|
||||
string CncPath = Path.ChangeExtension( BtlPath, ".cnc") ;
|
||||
if ( File.Exists( CncPath)) {
|
||||
|
||||
@@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
||||
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
|
||||
// usando l'asterisco '*' come illustrato di seguito:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.2.7.2")]
|
||||
[assembly: AssemblyFileVersion("2.2.7.2")]
|
||||
[assembly: AssemblyVersion("2.2.7.4")]
|
||||
[assembly: AssemblyFileVersion("2.2.7.4")]
|
||||
|
||||
Reference in New Issue
Block a user