Ejemplo n.º 1
0
 public BuildServer(RepoDistSettings container)
     : base(container, "BuildServer")
 {
     Type = new StringSetting("Type", this, null);
     EnableIntegration      = new BoolNullableSetting("EnableIntegration", this, false);
     ShowBuildSummaryInGrid = new BoolNullableSetting("ShowBuildSummaryInGrid", this, true);
 }
Ejemplo n.º 2
0
 public DetailedGroup(RepoDistSettings container)
     : base(container, "Detailed")
 {
     ShowConEmuTab  = new BoolNullableSetting("ShowConEmuTab", this, true);
     ConEmuStyle    = new StringSetting("ConEmuStyle", this, "<Solarized Light>");
     ConEmuTerminal = new StringSetting("ConEmuTerminal", this, "bash");
     ConEmuFontSize = new StringSetting("ConEmuFontSize", this, "12");
     GetRemoteBranchesDirectlyFromRemote = new BoolNullableSetting("GetRemoteBranchesDirectlyFromRemote", this, false);
 }
Ejemplo n.º 3
0
 public StringComboBoxAdapter(GitCommands.Settings.StringSetting setting, ComboBox comboBox)
     : base(setting.FullPath, comboBox.Items.Cast <string>().ToList(), setting.DefaultValue)
 {
     CustomControl = comboBox;
 }
Ejemplo n.º 4
0
        protected void AddSettingBinding(GitCommands.Settings.StringSetting setting, ComboBox comboBox)
        {
            var adapter = new StringComboBoxAdapter(setting, comboBox);

            AddControlBinding(adapter.CreateControlBinding());
        }
Ejemplo n.º 5
0
 public IssueTracker(RepoDistSettings container)
     : base(container, "IssueTracker")
 {
     Type = new StringSetting("Type", this, null);
     EnableIntegration = new BoolNullableSetting("EnableIntegration", this, false);
 }
Ejemplo n.º 6
0
 public StringISettingAdapter(string aCaption, GitCommands.Settings.StringSetting setting)
     : base(setting.FullPath, aCaption, setting.DefaultValue)
 {
 }
Ejemplo n.º 7
0
 public static void AddStringSetting(this SettingsLayout aLayout, string aCaption, GitCommands.Settings.StringSetting aSetting)
 {
     aLayout.AddSetting(new StringISettingAdapter(aCaption, aSetting));
 }
Ejemplo n.º 8
0
 public static void AddStringSetting(this ISettingsLayout layout, string caption, GitCommands.Settings.StringSetting setting)
 {
     layout.AddSetting(new StringISettingAdapter(caption, setting));
 }