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

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

adding a setup.exe

File size: 1.4 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 Int32 _upperCatId;
36        public Int32 UpperCatId
37        {
38            set { _upperCatId = value; OnPropertyChanged("UpperCatId"); }
39            get { return _upperCatId; }
40        }
41       
42        public event PropertyChangedEventHandler PropertyChanged;
43        protected void OnPropertyChanged(String info)
44        {
45            if (PropertyChanged != null)
46                PropertyChanged(this, new PropertyChangedEventArgs(info));
47        }
48    }
49}
Note: See TracBrowser for help on using the repository browser.