public override void AddSettingsLayout(ISettingsLayout layout) { _currentRow++; var control = layout.GetControl(); control.Dock = DockStyle.Fill; Panel.Controls.Add(control, 1, _currentRow); }
protected virtual ISettingsLayout GetSettingsLayout() { if (_settingsLayout == null) { _settingsLayout = CreateSettingsLayout(); if (_settingsLayout.GetControl().Parent == null) { Controls.Add(_settingsLayout.GetControl()); } } return(_settingsLayout); }
protected BaseSettingsLayout(ISettingsLayout parentLayout) { ParentLayout = parentLayout; }
public void AddSettingsLayout(ISettingsLayout layout) { GetSettingsLayout().AddSettingsLayout(layout); }
public TableSettingsLayout(ISettingsLayout parentLayout, TableLayoutPanel panel) : base(parentLayout) { Panel = panel; }
public abstract void AddSettingsLayout(ISettingsLayout layout);
public static void AddStringSetting(this ISettingsLayout layout, string caption, GitCommands.Settings.StringSetting setting) { layout.AddSetting(new StringISettingAdapter(caption, setting)); }
public static void AddBoolSetting(this ISettingsLayout layout, string caption, BoolNullableSetting setting) { layout.AddSetting(new BoolNullableISettingAdapter(caption, setting)); }
public static void AddSetting(this ISettingsLayout layout, ISetting setting) { layout.AddSettingControl(setting.CreateControlBinding()); }
public GroupBoxSettingsLayout(ISettingsLayout parentLayout, string groupBoxCaption) : base(parentLayout, AutoLayoutSettingsPage.CreateDefaultTableLayoutPanel()) { CreateGroupBox(groupBoxCaption); }
public BaseSettingsLayout(ISettingsLayout parentLayout) { ParentLayout = parentLayout; }