internal ComponentUI(VASComponent component) { InitializeComponent(); Component = component; SettingsUI = new SettingsUI(Component); ScanRegionUI = new ScanRegionUI(Component); FeaturesUI = new FeaturesUI(Component); DebugUI = new DebugUI(Component); SetChildControlSettings(SettingsUI, tabSettings, "Settings"); SetChildControlSettings(ScanRegionUI, tabScanRegion, "ScanRegion"); SetChildControlSettings(FeaturesUI, tabFeatures, "Features"); SetChildControlSettings(DebugUI, tabDebug, "Debug"); tabScanRegion.SuspendLayout(); tabFeatures.SuspendLayout(); tabDebug.SuspendLayout(); }
public ComponentUI(VASComponent component) { InitializeComponent(); Component = component; // The tabs are still created in this window so that the entire codebase doesn't have to be rewritten SettingsUI = new SettingsUI(Component); ScanRegionUI = new ScanRegionUI(Component); FeaturesUI = new FeaturesUI(Component); DebugUI = new DebugUI(Component); SettingsWindow = new MainVASSettings(); SettingsWindow.AddTab(SettingsUI, SettingsWindow.tabSettings, "Settings"); SettingsWindow.AddTab(ScanRegionUI, SettingsWindow.tabScanRegion, "ScanRegion"); SettingsWindow.AddTab(FeaturesUI, SettingsWindow.tabFeatures, "Features"); SettingsWindow.AddTab(DebugUI, SettingsWindow.tabDebug, "Debug"); this.Dock = DockStyle.Fill; }