Skip to content
Newer
Older
100644 34 lines (29 sloc) 912 Bytes
2ddd3bb @roend83 Built git-tfs plugin for Git Extensions
roend83 authored
1 using GitUIPluginInterfaces;
2
3 namespace GitTfs.GitExtensions.Plugin
4 {
5 public class ShelveSettingsContainer
6 {
7 private readonly IGitPluginSettingsContainer _container;
8
9 public ShelveSettingsContainer(IGitPluginSettingsContainer container)
10 {
11 _container = container;
12 }
13
14 public string Name
15 {
16 get { return _container.GetSetting(SettingKeys.ShelvesetName); }
17 set { _container.SetSetting(SettingKeys.ShelvesetName, value); }
18 }
19
20 public bool Overwrite
21 {
22 get
23 {
24 bool result;
25 return bool.TryParse(SettingKeys.OverwriteShelveset, out result) && result;
26 }
27 set
28 {
29 _container.SetSetting(SettingKeys.OverwriteShelveset, value.ToString());
30 }
31 }
32 }
33 }
Something went wrong with that request. Please try again.