-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
45 lines (39 loc) · 1.52 KB
/
Program.cs
File metadata and controls
45 lines (39 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Windows.Forms;
using SelfDC.Utils;
using System.Reflection;
using SelfDC.Views;
using System.Threading;
using System.Diagnostics;
namespace SelfDC
{
static class Program
{
static string appName = Assembly.GetExecutingAssembly().GetName().Name;
static string appVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
static string appGuid = "abf2a777-ace8-40f3-a0ff-0aac712264c5";
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main()
{
/* Load app settings */
ScsUtils.WriteLog(string.Format("=== {0} ver. {1} ===", appName, appVersion));
ScsUtils.WriteLog("Caricamento impostazioni...");
Settings.AppCfgFileName = string.Format("{0}\\conf.txt", ScsUtils.GetAppPath());
Settings.LoadFromFile(Settings.AppCfgFileName);
/* Crea l'oggetto per lo scanner barcode */
ScsUtils.WriteLog("Inizializzazione scanner (Tipo Term: " + Settings.TipoTerminale);
if (Settings.TipoTerminale == "DL")
ScsUtils.bcReader = new Datalogic();
else
ScsUtils.bcReader = new Motorola();
/* show main form */
Application.Run(new SelfDC.Views.MainMenu());
/* Save Config File */
Settings.SaveToFile(Settings.AppCfgFileName);
ScsUtils.WriteLog("Applicazione terminata correttamente");
}
}
}