Example #1
0
        void AdvancedPreferencesSettingAdd()
        {
            this.newGUIContentSplitContainerBase1.RightPanel.Controls.Clear();
            this.newGUIContentSplitContainerBase1.LeftPanel.Controls.Clear();

            this.gpAdvancedSettings = new Atum.Studio.Controls.PropertyGridFiltered();
            this.newGUIContentSplitContainerBase1.RightPanel.Controls.Add(gpAdvancedSettings);


            var summaryHeight = 0;

            var AdvancedSettingsbase1 = new AdvancedSettingsbase();

            AdvancedSettingsbase1.onSelected += AdvancedSettingsbase_onSelected;
            AdvancedSettingsbase1.SettingText = "Model Properties";
            AdvancedSettingsbase1.Left        = 0;
            AdvancedSettingsbase1.Top         = summaryHeight;
            AdvancedSettingsbase1.Width       = this.newGUIContentSplitContainerBase1.LeftPanel.Width;
            this.newGUIContentSplitContainerBase1.LeftPanel.Controls.Add(AdvancedSettingsbase1);

            summaryHeight += 40;

            var AdvancedSettingsbase2 = new AdvancedSettingsbase();

            AdvancedSettingsbase2.onSelected += AdvancedSettingsbase_onSelected;
            AdvancedSettingsbase2.SettingText = "Support Engine";
            AdvancedSettingsbase2.Left        = 0;
            AdvancedSettingsbase2.Top         = summaryHeight;
            AdvancedSettingsbase2.Width       = this.newGUIContentSplitContainerBase1.LeftPanel.Width;
            this.newGUIContentSplitContainerBase1.LeftPanel.Controls.Add(AdvancedSettingsbase2);

            summaryHeight += 40;

            var AdvancedSettingsbase3 = new AdvancedSettingsbase();

            AdvancedSettingsbase3.onSelected += AdvancedSettingsbase_onSelected;
            AdvancedSettingsbase3.SettingText = "Performance";
            AdvancedSettingsbase3.Left        = 0;
            AdvancedSettingsbase3.Top         = summaryHeight;
            AdvancedSettingsbase3.Width       = this.newGUIContentSplitContainerBase1.LeftPanel.Width;
            this.newGUIContentSplitContainerBase1.LeftPanel.Controls.Add(AdvancedSettingsbase3);

            summaryHeight += 40;

            var AdvancedSettingsbase4 = new AdvancedSettingsbase();

            AdvancedSettingsbase4.onSelected += AdvancedSettingsbase_onSelected;
            AdvancedSettingsbase4.SettingText = "Licenses";
            AdvancedSettingsbase4.Left        = 0;
            AdvancedSettingsbase4.Top         = summaryHeight;
            AdvancedSettingsbase4.Width       = this.newGUIContentSplitContainerBase1.LeftPanel.Width;
            this.newGUIContentSplitContainerBase1.LeftPanel.Controls.Add(AdvancedSettingsbase4);

            summaryHeight += 40;
        }
Example #2
0
        void RightpanelUpdate(AdvancedSettingsbase advancedSettingsbase)
        {
            this.gpAdvancedSettings.Visible = false;

            var selectedNode = advancedSettingsbase;

            if (selectedNode != null)
            {
                switch (selectedNode.SettingText.ToLower().Replace(" ", String.Empty))
                {
                case "modelproperties":
                    this.gpAdvancedSettings.SelectedObject = this.AdvancedPreferences.ModelPreferences;
                    this.gpAdvancedSettings.Visible        = true;
                    this.gpAdvancedSettings.Focus();
                    break;

                case "supportengine":
                    this.gpAdvancedSettings.SelectedObject = this.AdvancedPreferences.SupportEnginePreferences;
                    this.gpAdvancedSettings.Visible        = true;
                    break;

                case "performance":
                    this.gpAdvancedSettings.SelectedObject = this.AdvancedPreferences.PerformancePreferences;
                    this.gpAdvancedSettings.Visible        = true;
                    break;

                case "licenses":
                    this.gpAdvancedSettings.SelectedObject = this.AdvancedPreferences.LicensesPreferences;
                    this.gpAdvancedSettings.Visible        = true;
                    break;

                default:
                    break;
                }
            }
        }