Revision 5bcf6d70 trunk/Pithos.Client.WPF/Configuration/PithosSettings.cs
b/trunk/Pithos.Client.WPF/Configuration/PithosSettings.cs | ||
---|---|---|
18 | 18 |
using System.Text; |
19 | 19 |
|
20 | 20 |
[Export(typeof(IPithosSettings))] |
21 |
public class PithosSettings : DynamicObject, IPithosSettings
|
|
21 |
public class PithosSettings : IPithosSettings |
|
22 | 22 |
{ |
23 |
public bool UseDefaultProxy |
|
24 |
{ |
|
25 |
get { return Settings.Default.UseDefaultProxy; } |
|
26 |
set { Settings.Default.UseDefaultProxy = value; } |
|
27 |
} |
|
28 |
|
|
29 |
public bool UseManualProxy |
|
30 |
{ |
|
31 |
get { return Settings.Default.UseManualProxy; } |
|
32 |
set { Settings.Default.UseManualProxy = value; } |
|
33 |
} |
|
34 |
|
|
35 |
public bool UseNoProxy |
|
36 |
{ |
|
37 |
get { return Settings.Default.UseNoProxy; } |
|
38 |
set { Settings.Default.UseNoProxy = value; } |
|
39 |
} |
|
40 |
|
|
23 | 41 |
public string PithosPath |
24 | 42 |
{ |
25 | 43 |
get { return Settings.Default.PithosPath; } |
26 | 44 |
set { Settings.Default.PithosPath = value; } |
27 | 45 |
} |
28 | 46 |
|
47 |
public string PithosSite |
|
48 |
{ |
|
49 |
get { return Settings.Default.PithosSite; } |
|
50 |
} |
|
51 |
|
|
29 | 52 |
public string IconsPath |
30 | 53 |
{ |
31 | 54 |
get { return Settings.Default.IconPath; } |
... | ... | |
56 | 79 |
set { Settings.Default.ProxyServer = value; } |
57 | 80 |
} |
58 | 81 |
|
59 |
public string ProxyPort
|
|
82 |
public int ProxyPort
|
|
60 | 83 |
{ |
61 | 84 |
get { return Settings.Default.ProxyPort; } |
62 | 85 |
set { Settings.Default.ProxyPort = value; } |
... | ... | |
89 | 112 |
set { Settings.Default.ExtensionsActivated = value; } |
90 | 113 |
} |
91 | 114 |
|
115 |
/* |
|
92 | 116 |
public override IEnumerable<string> GetDynamicMemberNames() |
93 | 117 |
{ |
94 | 118 |
return (from SettingsProperty property in Settings.Default.Properties |
... | ... | |
109 | 133 |
result=Settings.Default.Properties[binder.Name]; |
110 | 134 |
return true; |
111 | 135 |
} |
136 |
*/ |
|
112 | 137 |
|
113 | 138 |
public void Save() |
114 | 139 |
{ |
Also available in: Unified diff