hytos / DTI_PID / ID2PSN / Object / ID2Info.cs @ 6b9e7a56
이력 | 보기 | 이력해설 | 다운로드 (1.56 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
using System.IO; |
7 |
|
8 |
namespace ID2PSN |
9 |
{ |
10 |
public enum ID2DB_Type |
11 |
{ |
12 |
SQLite, |
13 |
MSSQL |
14 |
} |
15 |
public class ID2Info |
16 |
{ |
17 |
private static ID2Info projectInfo; |
18 |
private string _DefaultPath; |
19 |
private string _Name; |
20 |
private string _DBFilePath; |
21 |
private string _TempDirPath; |
22 |
private string _ImageDirPath; |
23 |
private string _SvgImageDirPath; |
24 |
|
25 |
public string DefaultPath { |
26 |
get { return _DefaultPath; } |
27 |
set { |
28 |
_DefaultPath = value; |
29 |
_Name = Path.GetFileName(value); |
30 |
_DBFilePath = value + @"\db\ITI_PID.db"; |
31 |
_TempDirPath = value + @"\Temp\"; |
32 |
_ImageDirPath = value + @"\image\"; |
33 |
_SvgImageDirPath = value + @"\svg\"; |
34 |
} |
35 |
} |
36 |
|
37 |
public string Name |
38 |
{ |
39 |
get { return _Name; } |
40 |
} |
41 |
|
42 |
public string DBFilePath |
43 |
{ |
44 |
get { return _DBFilePath; } |
45 |
} |
46 |
|
47 |
public string TempDirPath |
48 |
{ |
49 |
get { return _TempDirPath; } |
50 |
} |
51 |
|
52 |
public string ImageDirPath |
53 |
{ |
54 |
get { return _ImageDirPath; } |
55 |
} |
56 |
|
57 |
public string SvgImageDirPath |
58 |
{ |
59 |
get { return _SvgImageDirPath; } |
60 |
} |
61 |
|
62 |
public static ID2Info GetInstance() |
63 |
{ |
64 |
if (projectInfo == null) |
65 |
projectInfo = new ID2Info(); |
66 |
|
67 |
return projectInfo; |
68 |
} |
69 |
} |
70 |
} |