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 IconsPath
22 get { return Settings.Default.IconPath; }
23 set { Settings.Default.IconPath=value; }
26 public string UserName
28 get { return Settings.Default.UserName; }
29 set { Settings.Default.UserName=value; }
34 get { return Settings.Default.ApiKey; }
35 set { Settings.Default.ApiKey=value; }
38 public AccountsCollection Accounts
40 get { return Settings.Default.Accounts; }
41 set { Settings.Default.Accounts = value; }
44 public bool ExtensionsActivated
47 get { return Settings.Default.ExtensionsActivated; }
48 set { Settings.Default.ExtensionsActivated = value; }
53 Settings.Default.Save();
58 Settings.Default.Reload();
62 public string ProxyServer
64 get { return Settings.Default.ProxyServer; }
65 set { Settings.Default.ProxyServer = value; }
68 public string ProxyPort
70 get { return Settings.Default.ProxyPort; }
71 set { Settings.Default.ProxyPort = value; }
74 public string ProxyUsername
76 get { return Settings.Default.ProxyUsername; }
77 set { Settings.Default.ProxyUsername = value; }
81 public string ProxyPassword
83 get { return Settings.Default.ProxyPassword; }
84 set { Settings.Default.ProxyPassword = value; }
87 public bool ProxyAuthentication
90 get { return Settings.Default.ProxyAuthentication; }
91 set { Settings.Default.ProxyAuthentication = value; }