~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/VersionControl/SubversionAddIn/Src/AddInOptions.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using ICSharpCode.Core;
 
6
 
 
7
namespace ICSharpCode.Svn
 
8
{
 
9
        public class AddInOptions
 
10
        {
 
11
                public static readonly string OptionsProperty = "ICSharpCode.Svn.Options";
 
12
                
 
13
                static Properties properties;
 
14
                
 
15
                static AddInOptions()
 
16
                {
 
17
                        properties = PropertyService.Get(OptionsProperty, new Properties());
 
18
                }
 
19
                
 
20
                #region Properties
 
21
                public static bool AutomaticallyAddFiles {
 
22
                        get {
 
23
                                return properties.Get("AutomaticallyAddFiles", true);
 
24
                        }
 
25
                        set {
 
26
                                properties.Set("AutomaticallyAddFiles", value);
 
27
                        }
 
28
                }
 
29
                
 
30
                public static bool AutomaticallyDeleteFiles {
 
31
                        get {
 
32
                                return properties.Get("AutomaticallyDeleteFiles", true);
 
33
                        }
 
34
                        set {
 
35
                                properties.Set("AutomaticallyDeleteFiles", value);
 
36
                        }
 
37
                }
 
38
                
 
39
                public static bool AutomaticallyRenameFiles {
 
40
                        get {
 
41
                                return properties.Get("AutomaticallyRenameFiles", true);
 
42
                        }
 
43
                        set {
 
44
                                properties.Set("AutomaticallyRenameFiles", value);
 
45
                        }
 
46
                }
 
47
                
 
48
                public static bool AutomaticallyReloadProject {
 
49
                        get {
 
50
                                return properties.Get("AutomaticallyReloadProject", true);
 
51
                        }
 
52
                        set {
 
53
                                properties.Set("AutomaticallyReloadProject", value);
 
54
                        }
 
55
                }
 
56
                
 
57
                public static bool UseHistoryDisplayBinding {
 
58
                        get {
 
59
                                return properties.Get("UseHistoryDisplayBinding", true);
 
60
                        }
 
61
                        set {
 
62
                                properties.Set("UseHistoryDisplayBinding", value);
 
63
                        }
 
64
                }
 
65
                #endregion
 
66
        }
 
67
}