프로젝트

일반

사용자정보

통계
| 개정판:

hytos / ID2.Manager / ID2.Manager.Data / Models / ExcelDataInfo.cs @ 128bedc4

이력 | 보기 | 이력해설 | 다운로드 (1.56 KB)

1 8eca8767 taeseongkim
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Linq;
5
using System.Text;
6
using System.Threading.Tasks;
7
8
namespace ID2.Manager.Data.Models
9
{
10
    public class ExcelDataInfo : INotifyPropertyChanged
11
    {
12
        private string fILE_NAME;
13
        private string wORKSHEET_NAME;
14
15
        public string FILE_NAME { get => fILE_NAME;
16
            set {
17
18
                    if (fILE_NAME != value)
19
                    {
20
                        fILE_NAME = value;
21
                         OnNotifyPropertyChanged("FILE_NAME");
22
                        OnNotifyPropertyChanged("FullName");
23
                    }
24
                }
25
        }
26
        public string WORKSHEET_NAME
27
        {
28
            get => wORKSHEET_NAME;
29
            set
30
            {
31
32
                if (wORKSHEET_NAME != value)
33
                {
34
                    wORKSHEET_NAME = value;
35
                    OnNotifyPropertyChanged("WORKSHEET_NAME");
36
                    OnNotifyPropertyChanged("FullName");
37
                }
38
            }
39
        }
40
41
        public string FullName
42
        {
43
            get
44
            {
45
                return $"{FILE_NAME} :{WORKSHEET_NAME}";
46
            }
47
        }
48
49
        #region INotifyPropertyChanged Implementation 
50
51
        public event PropertyChangedEventHandler PropertyChanged;
52
53
        private void OnNotifyPropertyChanged(string property)
54
        {
55
            if (this.PropertyChanged != null)
56
            {
57
                this.PropertyChanged(this, new PropertyChangedEventArgs(property));
58
            }
59
        }
60
61
        #endregion
62
    }
63
}
클립보드 이미지 추가 (최대 크기: 500 MB)