-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
37 lines (33 loc) · 1.18 KB
/
Program.cs
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
using System;
using System.Windows.Forms;
using SelfDC.Utils;
using System.Reflection;
using System.IO;
namespace SelfDC
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main()
{
String appName = Assembly.GetExecutingAssembly().GetName().Name;
String appVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
/* 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);
/* show main form */
Application.Run(new MainMenu());
/* Save Config File */
if (!File.Exists(Settings.AppCfgFileName))
{
Settings.SaveToFile(Settings.AppCfgFileName);
}
ScsUtils.WriteLog("Applicazione terminata correttamente");
}
}
}