/// <summary> /// Show the dialog /// </summary> /// <param name="query"></param> /// <returns></returns> public static DialogResult ShowDialog( HeatMapMsx v, SpotfireViewProps svp) { Instance = new HeatMapPropertiesDialog(); return(Instance.ShowDialog2(v, svp)); }
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); }