Ejemplo n.º 1
0
        /// <summary>
        /// ShowDialog
        /// </summary>
        /// <param name="svm">Definition of the parameters of the Trellis Card view</param>
        /// <param name="initialTabName"></param>
        /// <returns></returns>

        public static DialogResult ShowDialog(
            TrellisCardVisualMsx v,
            SpotfireViewProps svp)
        {
            Instance = new TrellisCardPropertiesDialog();

            return(Instance.ShowDialog2(v, svp));
        }
Ejemplo n.º 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);
        }