hytos / DTI_PID / ID2PSN / Program.cs @ 29009c6a
이력 | 보기 | 이력해설 | 다운로드 (1.22 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.IO; |
4 |
using System.Linq; |
5 |
using System.Threading.Tasks; |
6 |
using System.Windows.Forms; |
7 |
|
8 |
namespace ID2PSN |
9 |
{ |
10 |
static class Program |
11 |
{ |
12 |
/// <summary> |
13 |
/// 해당 애플리케이션의 주 진입점입니다. |
14 |
/// </summary> |
15 |
[STAThread] |
16 |
static void Main(string[] args) |
17 |
{ |
18 |
//string path = Application.StartupPath + @"\project.txt"; |
19 |
//if (System.IO.File.Exists(path)) |
20 |
//{ |
21 |
// ID2Info info = ID2Info.GetInstance(); |
22 |
// info.DefaultPath = File.ReadAllLines(path)[0]; |
23 |
//} |
24 |
|
25 |
ID2Info info = ID2Info.GetInstance(); |
26 |
if (args.Length > 0) |
27 |
info.DefaultPath = args[0]; |
28 |
#if DEBUG |
29 |
info.DefaultPath = @"E:\DOFTECH\10. PSN\SampleProject"; |
30 |
//info.DefaultPath = @"D:\Projects\dd\21100497014_REB"; |
31 |
#endif |
32 |
|
33 |
if (DB.ConnTestAndCreateTable()) |
34 |
{ |
35 |
Application.EnableVisualStyles(); |
36 |
Application.SetCompatibleTextRenderingDefault(false); |
37 |
Application.Run(new MainForm()); |
38 |
} |
39 |
else |
40 |
MessageBox.Show("fail"); |
41 |
} |
42 |
} |
43 |
} |