void tProximoScanear(int Tipo, string[] Enderecos, object Valor) { Thread TSc; if (Tipo == 0) { int Value = Convert.ToInt32(Valor); TSc = new Thread(() => ThreadProximoScanearInt(Enderecos, Value)); } else { string Value = Convert.ToString(Valor); TSc = new Thread(() => ThreadProximoScanearString(Enderecos, Value)); } TSc.Start(); }
void tNovoScan(int Tipo, object Valor) { Thread TSc; if (Tipo == 0) { int Value = Convert.ToInt32(Valor); TSc = new Thread(() => ThreadNovoScannerInt(Value)); } else { string Value = Convert.ToString(Valor); TSc = new Thread(() => ThreadNovoScanearString(Value)); } TSc.Start(); }