Exemplo n.º 1
0
        protected void AddSettingBinding(BoolNullableSetting setting, CheckBox checkBox)
        {
            var adapter = new BoolCheckBoxAdapter(setting, checkBox);

            AddControlBinding(adapter.CreateControlBinding());
        }
Exemplo n.º 2
0
 public BoolCheckBoxAdapter(BoolNullableSetting setting, CheckBox checkBox)
     : base(setting.FullPath, setting.DefaultValue.Value)
 {
     CustomControl = checkBox;
 }
Exemplo n.º 3
0
 public BoolCheckBoxAdapter(BoolNullableSetting aSetting, CheckBox aCheckBox)
     : base(aSetting.FullPath, aSetting.DefaultValue.Value)
 {
     CustomControl = aCheckBox;
 }
 public MergeToolPath(ConfigFileSettings container)
     : base(container, "mergetool")
 {
     keepBackup = new BoolNullableSetting("keepBackup", this, true);
 }
 public BoolNullableISettingAdapter(string aCaption, BoolNullableSetting setting)
     : base(setting.FullPath, aCaption, setting.DefaultValue.Value)
 {
 }
 public static void AddBoolSetting(this SettingsLayout aLayout, string aCaption, BoolNullableSetting aSetting)
 {
     aLayout.AddSetting(new BoolNullableISettingAdapter(aCaption, aSetting));
 }
Exemplo n.º 7
0
 public static void AddBoolSetting(this ISettingsLayout layout, string caption, BoolNullableSetting setting)
 {
     layout.AddSetting(new BoolNullableISettingAdapter(caption, setting));
 }
 public static void AddBoolSetting(this SettingsLayout aLayout, string aCaption, BoolNullableSetting aSetting)
 {
     aLayout.AddSetting(new BoolNullableISettingAdapter(aCaption, aSetting));
 }
 public BoolNullableISettingAdapter(string aCaption, BoolNullableSetting setting)
     : base(setting.FullPath, aCaption, setting.DefaultValue.Value)
 {
 }