source: extensions/PiwigoLib/PiwigoUpload/DTO/LocalAlbumList.cs @ 12407

Last change on this file since 12407 was 12407, checked in by bayral, 13 years ago

editing local data v0

File size: 2.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.ComponentModel;
6
7namespace Com.Piwigo.Uploader.DTO
8{
9    public class LocalAlbumList : BindingList<LocalAlbum>
10    {}
11
12    public class LocalAlbum : INotifyPropertyChanged
13    {
14        private Int32? _id;
15        public Int32? Id
16        {
17            set { _id = value; OnPropertyChanged("Id"); }
18            get { return _id; }
19        }
20
21        private String _messageInfo;
22        public String MessageInfo
23        {
24            set { _messageInfo = value; OnPropertyChanged("MessageInfo"); }
25            get { return _messageInfo; }
26        }
27
28        private String _name;
29        public String Name
30        {
31            set { _name = value; OnPropertyChanged("Name"); }
32            get { return _name; }
33        }
34
35        private String _localDir;
36        public String LocalDir
37        {
38            set { _localDir = value; OnPropertyChanged("LocalDir"); }
39            get { return _localDir; }
40        }
41
42        private Int32? _upperCatId;
43        public Int32? UpperCatId
44        {
45            set { _upperCatId = value; OnPropertyChanged("UpperCatId"); }
46            get { return _upperCatId; }
47        }
48
49        private LocalAlbumList _subAlbums;
50        public LocalAlbumList SubAlbums
51        {
52            set { _subAlbums = value; OnPropertyChanged("SubAlbums"); }
53            get { return _subAlbums; }
54        }
55
56        private LocalImageList _localImages;
57        public LocalImageList LocalImages
58        {
59            set { _localImages = value; OnPropertyChanged("LocalImages"); }
60            get { return _localImages; }
61        }
62
63        public event PropertyChangedEventHandler PropertyChanged;
64        protected void OnPropertyChanged(String info)
65        {
66            if (PropertyChanged != null)
67                PropertyChanged(this, new PropertyChangedEventArgs(info));
68        }
69    }
70}
Note: See TracBrowser for help on using the repository browser.