예제 #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);
 }
예제 #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);
 }
예제 #3
0
 public StringComboBoxAdapter(GitCommands.Settings.StringSetting setting, ComboBox comboBox)
     : base(setting.FullPath, comboBox.Items.Cast <string>().ToList(), setting.DefaultValue)
 {
     CustomControl = comboBox;
 }
예제 #4
0
        protected void AddSettingBinding(GitCommands.Settings.StringSetting setting, ComboBox comboBox)
        {
            var adapter = new StringComboBoxAdapter(setting, comboBox);

            AddControlBinding(adapter.CreateControlBinding());
        }
예제 #5
0
 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));
 }
예제 #8
0
 public static void AddStringSetting(this ISettingsLayout layout, string caption, GitCommands.Settings.StringSetting setting)
 {
     layout.AddSetting(new StringISettingAdapter(caption, setting));
 }