Esempio n. 1
0
        //////////////////////////////////////////////////////////////////////////
        //////////// End of common code for setting up the dialog ////////////////
        //////////////////////////////////////////////////////////////////////////

        void SetupForm()
        {
            InSetup = true;

            ValidateViewInitialization();

            GeneralPropertiesPanel.Setup(V, EditValueChanged);

            DataPropertiesPanel.Setup(V, SVP, EditValueChanged);

            XAxisPanel.Setup(V.XAxis, V, SVP, EditValueChanged);

            YAxisPanel.Setup(V.YAxis, V, SVP, EditValueChanged);

            ColorByPanel.Setup(V.ColorAxis, V, SVP, EditValueChanged);

            ShapeByPanel.Setup(V.ShapeAxis, V, SVP, EditValueChanged);

            SizeByPanel.Setup(V.SizeAxis, V, SVP, EditValueChanged);

            TrellisPropertiesPanel.Setup(V, V.Trellis);

            PropertyDialogsUtil.SelectPropertyPage(CurrentTabName, TabPageSelector, Tabs);

            InSetup = false;
            return;
        }
Esempio n. 2
0
        void GetFormValues()
        {
            ScatterPlotMsx v = V;             // update existing visual instance

            // General

            GeneralPropertiesPanel.GetValues(v);

            XAxisPanel.GetValues();

            YAxisPanel.GetValues();

            // Other panels
            // --- todo ---

            if (
                MarkerColorRulesControlChanged ||
                MarkerShapesControlChanged ||
                AxesTabChanged)
            {
                if (MarkerColorRulesControlChanged)
                {
                    //QueryColumn qc = SVM.MarkerColor.QueryColumn;
                    //if (qc != null)
                    //{ // associate rules with QueryColumn
                    //	if (qc.CondFormat == null) qc.CondFormat = new CondFormat();
                    //	//qc.CondFormat.Rules = View.MarkerColorBy.ColorRulesControl.GetRules();
                    //	if (qc.CondFormat.Rules != null)
                    //		qc.CondFormat.Rules.InitializeInternalMatchValues(qc.MetaColumn.DataType);
                    //	//SVM.ApplyMarkerColorRules();
                    //}
                    MarkerColorRulesControlChanged = false;
                }

                //if (MarkerShapesControlChanged)
                //{
                //  GetMarkerShapeSchemeRulesFromGrid();
                //  MarkerShapesControlChanged = false;
                //}

                if (AxesTabChanged)
                {
                    //GetAxesFieldList();
                }

                SVM.ConfigureRenderingControl();
            }

            //if (TooltipFieldListControl.Changed) // update tooltip info
            //	SVM.MarkerTooltip.Fields = TooltipFieldListControl.GetFields();

            return;
        }