Example #1
0
        public override void AddSettingsLayout(ISettingsLayout layout)
        {
            _currentRow++;
            var control = layout.GetControl();

            control.Dock = DockStyle.Fill;
            Panel.Controls.Add(control, 1, _currentRow);
        }
Example #2
0
        protected virtual ISettingsLayout GetSettingsLayout()
        {
            if (_settingsLayout == null)
            {
                _settingsLayout = CreateSettingsLayout();
                if (_settingsLayout.GetControl().Parent == null)
                {
                    Controls.Add(_settingsLayout.GetControl());
                }
            }

            return(_settingsLayout);
        }
Example #3
0
 protected BaseSettingsLayout(ISettingsLayout parentLayout)
 {
     ParentLayout = parentLayout;
 }
Example #4
0
 public void AddSettingsLayout(ISettingsLayout layout)
 {
     GetSettingsLayout().AddSettingsLayout(layout);
 }
Example #5
0
 public TableSettingsLayout(ISettingsLayout parentLayout, TableLayoutPanel panel)
     : base(parentLayout)
 {
     Panel = panel;
 }
Example #6
0
 public abstract void AddSettingsLayout(ISettingsLayout layout);
Example #7
0
 public static void AddStringSetting(this ISettingsLayout layout, string caption, GitCommands.Settings.StringSetting setting)
 {
     layout.AddSetting(new StringISettingAdapter(caption, setting));
 }
Example #8
0
 public static void AddBoolSetting(this ISettingsLayout layout, string caption, BoolNullableSetting setting)
 {
     layout.AddSetting(new BoolNullableISettingAdapter(caption, setting));
 }
Example #9
0
 public static void AddSetting(this ISettingsLayout layout, ISetting setting)
 {
     layout.AddSettingControl(setting.CreateControlBinding());
 }
Example #10
0
 public GroupBoxSettingsLayout(ISettingsLayout parentLayout, string groupBoxCaption)
     : base(parentLayout, AutoLayoutSettingsPage.CreateDefaultTableLayoutPanel())
 {
     CreateGroupBox(groupBoxCaption);
 }
Example #11
0
 public BaseSettingsLayout(ISettingsLayout parentLayout)
 {
     ParentLayout = parentLayout;
 }