1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Text; |
---|
4 | |
---|
5 | using Com.Piwigo.Lib.DTO; |
---|
6 | using System.ComponentModel; |
---|
7 | |
---|
8 | namespace Com.Piwigo.Wpf.DTO |
---|
9 | { |
---|
10 | |
---|
11 | public class PwgSessionWPF: INotifyPropertyChanged |
---|
12 | { |
---|
13 | private Boolean _isConnected; |
---|
14 | public Boolean IsConnected { |
---|
15 | get { return _isConnected; } |
---|
16 | set { _isConnected = value; OnPropertyChanged("IsConnected"); } |
---|
17 | } |
---|
18 | |
---|
19 | private Boolean _saveSettings; |
---|
20 | public Boolean SaveSetting |
---|
21 | { |
---|
22 | set { _saveSettings = value; OnPropertyChanged("SaveSetting"); } |
---|
23 | get { return _saveSettings; } |
---|
24 | } |
---|
25 | |
---|
26 | private String _password; |
---|
27 | public String Password |
---|
28 | { |
---|
29 | set { _password = value; OnPropertyChanged("Password");} |
---|
30 | get { return _password; } |
---|
31 | } |
---|
32 | |
---|
33 | private String _serverName; |
---|
34 | public String ServeurName |
---|
35 | { |
---|
36 | set { _serverName = value; OnPropertyChanged("ServeurName");} |
---|
37 | get { return _serverName; } |
---|
38 | } |
---|
39 | |
---|
40 | private String _userName; |
---|
41 | public String UserName |
---|
42 | { |
---|
43 | set { _userName = value; OnPropertyChanged("UserName"); } |
---|
44 | get { return _userName; } |
---|
45 | } |
---|
46 | |
---|
47 | private PwgSessionStatusEnum _status; |
---|
48 | public PwgSessionStatusEnum Status |
---|
49 | { |
---|
50 | set { _status = value; OnPropertyChanged("Status"); } |
---|
51 | get { return _status; } |
---|
52 | } |
---|
53 | |
---|
54 | private String _template; |
---|
55 | public String Template |
---|
56 | { |
---|
57 | set { _template = value; OnPropertyChanged("Template"); } |
---|
58 | get { return _template; } |
---|
59 | } |
---|
60 | |
---|
61 | private String _theme; |
---|
62 | public String Theme |
---|
63 | { |
---|
64 | set { _theme = value; OnPropertyChanged("Theme"); } |
---|
65 | get { return _theme; } |
---|
66 | } |
---|
67 | |
---|
68 | private String _language; |
---|
69 | public String Language |
---|
70 | { |
---|
71 | set { _language = value; OnPropertyChanged("Language"); } |
---|
72 | get { return _language; } |
---|
73 | } |
---|
74 | |
---|
75 | private String _charSet; |
---|
76 | public String CharSet |
---|
77 | { |
---|
78 | set { _charSet = value; OnPropertyChanged("CharSet"); } |
---|
79 | get { return _charSet; } |
---|
80 | } |
---|
81 | |
---|
82 | public event PropertyChangedEventHandler PropertyChanged; |
---|
83 | private void OnPropertyChanged(String info) |
---|
84 | { |
---|
85 | if (PropertyChanged != null) |
---|
86 | PropertyChanged(this, new PropertyChangedEventArgs(info)); |
---|
87 | } |
---|
88 | |
---|
89 | } |
---|
90 | } |
---|