Torna al Thread

class Temporizzatori { public void GestioneTemporizzatori(string RigaDaGestire, char risultato, string[] Temporizzatore, byte[] AppoggioTemporizzatori) { int Tempo = int.Parse((RigaDaGestire.Substring(59, 5))); int Contasecondi = 0; if (risultato == '1') { AppoggioTemporizzatori[int.Parse(RigaDaGestire.Substring(48, 3))] = 1; } else { AppoggioTemporizzatori[int.Parse(RigaDaGestire.Substring(48, 3))] = 0; } if (AppoggioTemporizzatori[int.Parse(RigaDaGestire.Substring(48, 3))] == 1) { // trovare base dei tempi adeguata per eseguire incremento di Contasecondi e modo per fare partire molte volte questo metodo contemporaneamente if (Contasecondi == Tempo) { Temporizzatore[int.Parse(RigaDaGestire.Substring(48, 3))] = "1"; } } } }
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5