/// <summary> /// ShowDialog /// </summary> /// <param name="dataMap"></param> /// <param name="initialTabName"></param> /// <returns></returns> public static DialogResult ShowDialog( DataTableMapMsx dataMap) { DataMapOptionsDialog dmd = new DataMapOptionsDialog(); dmd.DataMap = dataMap; dmd.Setup(); return(dmd.ShowDialog()); }
void ShowDataMapOptionsDialog() { DialogResult dr = DataMapOptionsDialog.ShowDialog(CurrentMap); if (dr != DialogResult.OK) return; if (DataTableMaps.WriteSingleDataFile != DataMapOptionsDialog.WriteSingleDataFile) { DataTableMaps.WriteSingleDataFile = DataMapOptionsDialog.WriteSingleDataFile; if (DataTableMaps.WriteSingleDataFile) { // todo } else { // todo } } if (DataTableMaps.SummarizationOneRowPerKey != DataMapOptionsDialog.SummarizationOneRowPerKey) { DataTableMaps.SummarizationOneRowPerKey = DataMapOptionsDialog.SummarizationOneRowPerKey; if (DataTableMaps.SummarizationOneRowPerKey) { // todo } else { // todo } } if (CurrentMap.QueryTable != DataMapOptionsDialog.QueryTable) { CurrentMap.QueryTable = DataMapOptionsDialog.QueryTable; CurrentMap.AssignInitialMappingForSpotfireDataTable(CurrentMap.SpotfireDataTable, CurrentMap.QueryTable); UpdateFieldGridDataTable(); } return; }