source: extensions/PiwigoLib/PiwigoWpf/DTO/LocalPwgCategory.cs @ 12038

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

start local ctageory and local image for import

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.Wpf.DTO
8{
9    public class LocalPwgCategoryListWPF : AsyncObservableCollection<LocalPwgCategoryWPF>
10    {}
11
12    public class LocalPwgCategoryWPF : 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 LocalPwgCategoryListWPF _subCategories;
50        public LocalPwgCategoryListWPF SubCategories
51        {
52            set { _subCategories = value; OnPropertyChanged("SubCategories"); }
53            get { return _subCategories; }
54        }
55
56        private LocalPwgImageListWPF _localImages;
57        public LocalPwgImageListWPF 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.