source: extensions/PiwigoLib/PiwigoUpload/DTO/LocalPwgImage.cs @ 13520

Last change on this file since 13520 was 13520, checked in by bayral, 12 years ago

new project for windows live publish plugin
Well advance single uploader

File size: 2.5 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.ComponentModel;
6using Com.Piwigo.Lib.DTO;
7
8namespace Com.Piwigo.Uploader.DTO
9{
10    public class LocalImageList : BindingList<LocalImage>
11    {}
12
13    public class LocalImage : INotifyPropertyChanged
14    {
15        //FileInfo highResFile, FileInfo lowResFile, FileInfo thumbFile, String imageName, String imageAuthor, DateTime creationDate,
16        //    String authorComment, List<String> lstAlbums, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel
17
18        private Int32? _id;
19        public Int32? Id
20        {
21            set { _id = value; OnPropertyChanged("Id"); }
22            get { return _id; }
23        }
24
25         private String _author;
26        public String Author
27        {
28            set { _author = value; OnPropertyChanged("Author"); }
29            get { return _author; }
30        }
31
32        private String _authorComment;
33        public String AuthorComment
34        {
35            set { _authorComment = value; OnPropertyChanged("AuthorComment"); }
36            get { return _authorComment; }
37        }
38
39        private String _name;
40        public String Name
41        {
42            set { _name = value; OnPropertyChanged("Name"); }
43            get { return _name; }
44        }
45
46        private String _localFile;
47        public String LocalFile
48        {
49            set { _localFile = value; OnPropertyChanged("LocalFile"); }
50            get { return _localFile; }
51        }
52
53        private Int32? _upperCatId;
54        public Int32? UpperCatId
55        {
56            set { _upperCatId = value; OnPropertyChanged("UpperCatId"); }
57            get { return _upperCatId; }
58        }
59
60        private BindingList<PwgTag> _lstTags;
61        public BindingList<PwgTag> LstTags
62        {
63            set { _lstTags = value; OnPropertyChanged("LstTags"); }
64            get { return _lstTags; }
65        }
66
67        private PwgConfidentLevelEnum _confidentialLevel;
68        public PwgConfidentLevelEnum ConfidentialLevel
69        {
70            set { _confidentialLevel = value; OnPropertyChanged("ConfidentialLevel"); }
71            get { return _confidentialLevel; }
72        }
73
74        public event PropertyChangedEventHandler PropertyChanged;
75        protected void OnPropertyChanged(String info)
76        {
77            if (PropertyChanged != null)
78                PropertyChanged(this, new PropertyChangedEventArgs(info));
79        }
80
81
82    }
83}
Note: See TracBrowser for help on using the repository browser.