hytos / DTI_PID / BaseModel / Project_Info.cs @ 30d2cfcc
이력 | 보기 | 이력해설 | 다운로드 (1.43 KB)
1 | 171142c5 | gaqhf | 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 | bca86986 | gaqhf | private string _ImageDirPath; |
19 | 171142c5 | gaqhf | |
20 | public string DefaultPath { |
||
21 | get { return _DefaultPath; } |
||
22 | set { |
||
23 | _DefaultPath = value; |
||
24 | _Name = Path.GetFileName(value); |
||
25 | _DBFilePath = value + @"\db\ITI_PID.db"; |
||
26 | _TempDirPath = value + @"\Temp\"; |
||
27 | bca86986 | gaqhf | _ImageDirPath = value + @"\image\"; |
28 | 171142c5 | gaqhf | } |
29 | } |
||
30 | |||
31 | public string Name |
||
32 | { |
||
33 | get { return _Name; } |
||
34 | } |
||
35 | |||
36 | public string DBFilePath |
||
37 | { |
||
38 | get { return _DBFilePath; } |
||
39 | } |
||
40 | public string TempDirPath |
||
41 | { |
||
42 | get { return _TempDirPath; } |
||
43 | } |
||
44 | |||
45 | bca86986 | gaqhf | public string ImageDirPath |
46 | { |
||
47 | get { return _ImageDirPath; } |
||
48 | } |
||
49 | |||
50 | 171142c5 | gaqhf | public bool Enable { get => _Enable; set => _Enable = value; } |
51 | ec0c7045 | gaqhf | |
52 | 171142c5 | gaqhf | |
53 | public static Project_Info GetInstance() |
||
54 | { |
||
55 | if (projectInfo == null) |
||
56 | projectInfo = new Project_Info(); |
||
57 | |||
58 | return projectInfo; |
||
59 | } |
||
60 | } |
||
61 | } |