2 using System.Collections.Generic;
3 using System.ComponentModel.Composition;
6 using Pithos.Client.Properties;
7 using Pithos.Interfaces;
9 namespace Pithos.Client
11 [Export(typeof(IPithosSettings))]
12 public class PithosSettings:IPithosSettings
14 public string PithosPath
16 get { return Settings.Default.PithosPath; }
17 set { Settings.Default.PithosPath=value; }
20 public string PithosSite
22 get { return Settings.Default.PithosSite; }
25 public string IconsPath
27 get { return Settings.Default.IconPath; }
28 set { Settings.Default.IconPath=value; }
31 public string UserName
33 get { return Settings.Default.UserName; }
34 set { Settings.Default.UserName=value; }
39 get { return Settings.Default.ApiKey; }
40 set { Settings.Default.ApiKey=value; }
43 public AccountsCollection Accounts
45 get { return Settings.Default.Accounts; }
46 set { Settings.Default.Accounts = value; }
49 public bool UseDefaultProxy
51 get { return Settings.Default.UseDefaultProxy; }
52 set { Settings.Default.UseDefaultProxy = value; }
55 public bool UseManualProxy
57 get { return Settings.Default.UseManualProxy; }
58 set { Settings.Default.UseManualProxy = value; }
61 public bool UseNoProxy
63 get { return Settings.Default.UseNoProxy; }
64 set { Settings.Default.UseNoProxy = value; }
67 public bool ExtensionsActivated
70 get { return Settings.Default.ExtensionsActivated; }
71 set { Settings.Default.ExtensionsActivated = value; }
76 Settings.Default.Save();
81 Settings.Default.Reload();
85 public string ProxyServer
87 get { return Settings.Default.ProxyServer; }
88 set { Settings.Default.ProxyServer = value; }
93 get { return Settings.Default.ProxyPort; }
94 set { Settings.Default.ProxyPort = value; }
97 public string ProxyUsername
99 get { return Settings.Default.ProxyUsername; }
100 set { Settings.Default.ProxyUsername = value; }
104 public string ProxyPassword
106 get { return Settings.Default.ProxyPassword; }
107 set { Settings.Default.ProxyPassword = value; }
110 public bool ProxyAuthentication
113 get { return Settings.Default.ProxyAuthentication; }
114 set { Settings.Default.ProxyAuthentication = value; }