hytos / DTI_PID / BaseModel / Project_Info.cs @ fab4f207
이력 | 보기 | 이력해설 | 다운로드 (1.26 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 Converter.BaseModel |
9 |
{ |
10 |
public class Project_Info |
11 |
{ |
12 |
private static Project_Info projectInfo; |
13 |
private string _DefaultPath; |
14 |
private string _Name; |
15 |
private bool _Enable; |
16 |
private string _DBFilePath; |
17 |
private string _TempDirPath; |
18 | |
19 |
public string DefaultPath { |
20 |
get { return _DefaultPath; } |
21 |
set { |
22 |
_DefaultPath = value; |
23 |
_Name = Path.GetFileName(value); |
24 |
_DBFilePath = value + @"\db\ITI_PID.db"; |
25 |
_TempDirPath = value + @"\Temp\"; |
26 |
} |
27 |
} |
28 | |
29 |
public string Name |
30 |
{ |
31 |
get { return _Name; } |
32 |
} |
33 | |
34 |
public string DBFilePath |
35 |
{ |
36 |
get { return _DBFilePath; } |
37 |
} |
38 | |
39 |
public string TempDirPath |
40 |
{ |
41 |
get { return _TempDirPath; } |
42 |
} |
43 | |
44 |
public bool Enable { get => _Enable; set => _Enable = value; } |
45 |
|
46 | |
47 |
public static Project_Info GetInstance() |
48 |
{ |
49 |
if (projectInfo == null) |
50 |
projectInfo = new Project_Info(); |
51 | |
52 |
return projectInfo; |
53 |
} |
54 |
} |
55 |
} |