示例#1
0
		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;
		}