All files
[pithos-ms-client] / trunk / Pithos.Client / PithosSettings.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel.Composition;
4 using System.Linq;
5 using System.Text;
6 using Pithos.Client.Properties;
7 using Pithos.Interfaces;
8
9 namespace Pithos.Client
10 {
11     [Export(typeof(IPithosSettings))]
12     public class PithosSettings:IPithosSettings
13     {
14         public string PithosPath
15         {
16             get { return Settings.Default.PithosPath; }
17             set { Settings.Default.PithosPath=value; }
18         }
19
20         public string IconsPath
21         {
22             get { return Settings.Default.IconPath; }
23             set { Settings.Default.IconPath=value; }
24         }
25
26         public string UserName
27         {
28             get { return Settings.Default.UserName; }
29             set { Settings.Default.UserName=value; }
30         }
31
32         public string ApiKey
33         {
34             get { return Settings.Default.ApiKey; }
35             set { Settings.Default.ApiKey=value; }
36         }
37
38         public void Save()
39         {
40             Settings.Default.Save();
41         }
42
43         public void Reload()
44         {
45             Settings.Default.Reload();
46         }
47     }
48 }