55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using EgwProxy.Icoel;
|
|
|
|
namespace EgwProxy.Icoel.Test
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
// ersempio funzionamento connector via console app
|
|
// setp 1: legge conf da file ini che si trovano in bin (riportati come conf principali)
|
|
Console.WriteLine("Loading Files...");
|
|
|
|
Connector IcoelSizer = new Connector("192.168.137.50", "8001");
|
|
|
|
#if false
|
|
Connector.Load();
|
|
#endif
|
|
|
|
// ora effettua lettura Varietà e Layout disponibili
|
|
|
|
try
|
|
{
|
|
var varList = IcoelSizer.RecuperaVarietyLayout();
|
|
if (varList != null)
|
|
{
|
|
var stringList = IcoelSizer.DisplayVarietyLayout(varList);
|
|
foreach (var item in stringList)
|
|
{
|
|
Console.WriteLine(item);
|
|
}
|
|
}
|
|
|
|
IcoelSizer.VerificaLottoCorrente();
|
|
|
|
IcoelSizer.MettiLottoInCoda();
|
|
|
|
IcoelSizer.VerificaLottoCorrente();
|
|
|
|
Console.WriteLine("Done.");
|
|
Console.ReadKey();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.WriteLine("ECCEZIONE" + ex.Message + ex.StackTrace);
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|
|
}
|