hytos / DTI_PID / ID2PSN / Program.cs @ 8487ecb2
이력 | 보기 | 이력해설 | 다운로드 (1.15 KB)
1 | 0dae5645 | gaqhf | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | 6b9e7a56 | gaqhf | using System.IO; |
4 | 0dae5645 | gaqhf | 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 | 6b9e7a56 | gaqhf | static void Main(string[] args) |
17 | 0dae5645 | gaqhf | { |
18 | 7bc1e1db | gaqhf | //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 | 721b754d | gaqhf | ID2Info info = ID2Info.GetInstance(); |
26 | 7bc1e1db | gaqhf | if (args.Length > 0) |
27 | info.DefaultPath = args[0]; |
||
28 | 721b754d | gaqhf | #if DEBUG |
29 | info.DefaultPath = @"D:\Projects\SampleProject"; |
||
30 | #endif |
||
31 | 7bc1e1db | gaqhf | |
32 | 6b9e7a56 | gaqhf | if (DB.ConnTestAndCreateTable()) |
33 | { |
||
34 | Application.EnableVisualStyles(); |
||
35 | Application.SetCompatibleTextRenderingDefault(false); |
||
36 | Application.Run(new MainForm()); |
||
37 | } |
||
38 | else |
||
39 | MessageBox.Show("fail"); |
||
40 | 0dae5645 | gaqhf | } |
41 | } |
||
42 | } |