コード例 #1
0
 internal void InitVASLSettings(VASLSettings settings, bool scriptLoaded)
 {
     SettingsUI.InitVASLSettings(settings, scriptLoaded);
     ScanRegionUI.InitVASLSettings(settings, scriptLoaded);
     FeaturesUI.InitVASLSettings(settings, scriptLoaded);
     DebugUI.InitVASLSettings(settings, scriptLoaded);
 }
コード例 #2
0
        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();
        }
コード例 #3
0
        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;
        }