hytos / DTI_PID / BaseModel / ProjectInfo.cs @ 23eb98bf
이력 | 보기 | 이력해설 | 다운로드 (888 Bytes)
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 ProjectInfo |
11 |
{ |
12 |
private static ProjectInfo projectInfo; |
13 |
private string _Path; |
14 |
private string _Name; |
15 |
private bool _Enable; |
16 |
|
17 |
public string Path { |
18 |
get { return _Path; } |
19 |
set { |
20 |
_Path = value; |
21 |
_Name = System.IO.Path.GetFileName(value); |
22 |
} |
23 |
} |
24 |
|
25 |
public string Name |
26 |
{ |
27 |
get { return _Name; } |
28 |
} |
29 |
|
30 |
public bool Enable { get => _Enable; set => _Enable = value; } |
31 |
|
32 |
public static ProjectInfo GetInstance() |
33 |
{ |
34 |
if (projectInfo == null) |
35 |
projectInfo = new ProjectInfo(); |
36 |
|
37 |
return projectInfo; |
38 |
} |
39 |
} |
40 |
} |