프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / BaseModel / Project_Info.cs @ bca86986

이력 | 보기 | 이력해설 | 다운로드 (1.43 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
        private string _ImageDirPath;
19

    
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
                _ImageDirPath = value + @"\image\";
28
            }
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
        public string ImageDirPath
46
        {
47
            get { return _ImageDirPath; }
48
        }
49

    
50
        public bool Enable { get => _Enable; set => _Enable = value; }
51

    
52

    
53
        public static Project_Info GetInstance()
54
        {
55
            if (projectInfo == null)
56
                projectInfo = new Project_Info();
57

    
58
            return projectInfo;
59
        }
60
    }
61
}
클립보드 이미지 추가 (최대 크기: 500 MB)