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 | public Boolean IsConnected { |
---|
14 | get { return this.Status != PwgSessionStatusEnum.Guest; } |
---|
15 | } |
---|
16 | |
---|
17 | private Boolean _saveSettings; |
---|
18 | public Boolean SaveSetting |
---|
19 | { |
---|
20 | set { _saveSettings = value; OnPropertyChanged("SaveSetting"); } |
---|
21 | get { return _saveSettings; } |
---|
22 | } |
---|
23 | |
---|
24 | private String _password; |
---|
25 | public String Password |
---|
26 | { |
---|
27 | set { _password = value; OnPropertyChanged("Password"); } |
---|
28 | get { return _password; } |
---|
29 | } |
---|
30 | |
---|
31 | private String _serverName; |
---|
32 | public String ServeurName |
---|
33 | { |
---|
34 | set { _serverName = value; OnPropertyChanged("ServeurName"); } |
---|
35 | get { return _serverName; } |
---|
36 | } |
---|
37 | |
---|
38 | private String _userName; |
---|
39 | public String UserName |
---|
40 | { |
---|
41 | set { _userName = value; OnPropertyChanged("UserName"); } |
---|
42 | get { return _userName; } |
---|
43 | } |
---|
44 | |
---|
45 | private PwgSessionStatusEnum _status; |
---|
46 | public PwgSessionStatusEnum Status |
---|
47 | { |
---|
48 | set { _status = value; OnPropertyChanged("Status"); OnPropertyChanged("IsConnected"); } |
---|
49 | get { return _status; } |
---|
50 | } |
---|
51 | |
---|
52 | private String _template; |
---|
53 | public String Template |
---|
54 | { |
---|
55 | set { _template = value; OnPropertyChanged("Template"); } |
---|
56 | get { return _template; } |
---|
57 | } |
---|
58 | |
---|
59 | private String _theme; |
---|
60 | public String Theme |
---|
61 | { |
---|
62 | set { _theme = value; OnPropertyChanged("Theme"); } |
---|
63 | get { return _theme; } |
---|
64 | } |
---|
65 | |
---|
66 | private String _language; |
---|
67 | public String Language |
---|
68 | { |
---|
69 | set { _language = value; OnPropertyChanged("Language"); } |
---|
70 | get { return _language; } |
---|
71 | } |
---|
72 | |
---|
73 | private String _charSet; |
---|
74 | public String CharSet |
---|
75 | { |
---|
76 | set { _charSet = value; OnPropertyChanged("CharSet"); } |
---|
77 | get { return _charSet; } |
---|
78 | } |
---|
79 | |
---|
80 | public event PropertyChangedEventHandler PropertyChanged; |
---|
81 | private void OnPropertyChanged(String info) |
---|
82 | { |
---|
83 | if (PropertyChanged != null) |
---|
84 | PropertyChanged(this, new PropertyChangedEventArgs(info)); |
---|
85 | } |
---|
86 | |
---|
87 | } |
---|
88 | } |
---|