46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Icoel.Soap;
|
|
|
|
namespace 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.Load();
|
|
|
|
// ora effettua lettura Varietà e Layout disponibili
|
|
|
|
try
|
|
{
|
|
var varList = Connector.RecuperaVarietyLayout();
|
|
if (varList != null)
|
|
{
|
|
Connector.DisplayVarietyLayout(varList);
|
|
}
|
|
|
|
Connector.VerificaLottoCorrente();
|
|
|
|
Connector.MettiLottoInCoda();
|
|
|
|
Connector.VerificaLottoCorrente();
|
|
|
|
Console.WriteLine("Done.");
|
|
Console.ReadKey();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.WriteLine("ECCEZIONE" + ex.Message + ex.StackTrace);
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|
|
}
|