protected virtual SettingsLayout GetSettingsLayout() { if (settingsLayout == null) { settingsLayout = CreateSettingsLayout(); if (settingsLayout.GetControl().Parent == null) { this.Controls.Add(settingsLayout.GetControl()); } } return(settingsLayout); }
protected virtual SettingsLayout GetSettingsLayout() { if (settingsLayout == null) { settingsLayout = CreateSettingsLayout(); if (settingsLayout.GetControl().Parent == null) { this.Controls.Add(settingsLayout.GetControl()); } } return settingsLayout; }
public override void AddSettingsLayout(SettingsLayout aLayout) { currentRow++; var control = aLayout.GetControl(); control.Dock = DockStyle.Fill; Panel.Controls.Add(control, 1, currentRow); }