Beispiel #1
0
        /// <summary>
        /// Show the dialog
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>

        public static DialogResult ShowDialog(
            ScatterPlotMsx v,
            SpotfireViewManager svm)
        {
            Instance = new ScatterPlotPropertiesDialog();
            return(Instance.ShowDialog2(v, svm));
        }
Beispiel #2
0
        public static DialogResult EditVisualProperties(
            VisualMsx v,
            SpotfireViewProps svp)
        {
            DialogResult dr = DialogResult.Cancel;

            if (v == null)
            {
                return(DialogResult.Cancel);
            }

            else if (v is TablePlotMsx)
            {
                TablePlotPropertiesDialog.ShowDialog((TablePlotMsx)v, svp);
            }

            else if (v is BarChartMsx)
            {
                BarChartPropertiesDialog.ShowDialog((BarChartMsx)v, svp);
            }

            else if (v is ScatterPlotMsx)
            {
                ScatterPlotPropertiesDialog.ShowDialog((ScatterPlotMsx)v, svp);
            }

            else if (v is TreemapMsx)
            {
                TreemapPropertiesDialog.ShowDialog((TreemapMsx)v, svp);
            }

            else if (v is HeatMapMsx)
            {
                HeatMapPropertiesDialog.ShowDialog((HeatMapMsx)v, svp);
            }

            else if (v is TrellisCardVisualMsx)
            {
                TrellisCardPropertiesDialog.ShowDialog((TrellisCardVisualMsx)v, svp);
            }

            else
            {
                MessageBox.Show("Can't edit properties for a " + v.TypeId.DisplayName + " visualization", "Spotfire Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            return(dr);
        }