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); }
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); }
public StringComboBoxAdapter(GitCommands.Settings.StringSetting setting, ComboBox comboBox) : base(setting.FullPath, comboBox.Items.Cast <string>().ToList(), setting.DefaultValue) { CustomControl = comboBox; }
protected void AddSettingBinding(GitCommands.Settings.StringSetting setting, ComboBox comboBox) { var adapter = new StringComboBoxAdapter(setting, comboBox); AddControlBinding(adapter.CreateControlBinding()); }
public IssueTracker(RepoDistSettings container) : base(container, "IssueTracker") { Type = new StringSetting("Type", this, null); EnableIntegration = new BoolNullableSetting("EnableIntegration", this, false); }
public StringISettingAdapter(string aCaption, GitCommands.Settings.StringSetting setting) : base(setting.FullPath, aCaption, setting.DefaultValue) { }
public static void AddStringSetting(this SettingsLayout aLayout, string aCaption, GitCommands.Settings.StringSetting aSetting) { aLayout.AddSetting(new StringISettingAdapter(aCaption, aSetting)); }
public static void AddStringSetting(this ISettingsLayout layout, string caption, GitCommands.Settings.StringSetting setting) { layout.AddSetting(new StringISettingAdapter(caption, setting)); }