예제 #1
0
		/// <summary>
		/// Spotfire data table changed
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>

		private void DataTableSelectorControl_EditValueChanged(object sender, EventArgs e)
		{
			if (InSetup) return;

			if (CurrentMap == null) return;

			UpdateFieldGridDataTable();

			QtSelectorControl.Setup(CurrentMap, QueryTableAssignmentChanged); // Set associated querytable

			return;
		}
예제 #2
0
		/// <summary>
		/// Setup the control for specified view
		/// </summary>
		/// <param name="view"></param>

		public void Setup(
			SpotfireViewManager svm,
			DataTableMapMsx dataMap = null,
			EventHandler callerEditValueChangedHandler = null)
		{
			DataRow dr;
			DataColumn dc;

			InSetup = true;

			SVM = svm;
			DataTableMaps = svm?.SVP.DataTableMaps;

			CallerEditValueChangedHandler = callerEditValueChangedHandler;

			DataTableSelectorControl.Setup(DataTableMaps, DataTableSelectorControl_EditValueChanged);

			QtSelectorControl.Setup(CurrentMap, QueryTableAssignmentChanged);

			GridView.OptionsSelection.MultiSelect = !SelectSingleColumn;
			GridView.OptionsBehavior.Editable = !SelectSingleColumn;

			DataTable dt = new DataTable();
			dt.Columns.Add(new DataColumn("DataTypeImageField", typeof(Image)));
			dt.Columns.Add(new DataColumn("SpotfireColNameField", typeof(string)));
			dt.Columns.Add(new DataColumn("OriginalSpotfireColNameField", typeof(string)));
			dt.Columns.Add(new DataColumn("SelectedField", typeof(bool)));
			dt.Columns.Add(new DataColumn("MobiusTableNameField", typeof(string)));
			dt.Columns.Add(new DataColumn("MobiusColNameField", typeof(string)));
			dt.Columns.Add(new DataColumn("ColumnMapMsxRefField", typeof(ColumnMapMsx)));

			dt.RowChanged += new DataRowChangeEventHandler(Dt_RowChanged); // Monitor row changes

			//dr = dt.NewRow(); // add blank row at bottom
			//dt.Rows.Add(dr);

			FieldDataTable = dt;
			FieldGrid.DataSource = dt;

			UpdateFieldGridDataTable(); // do initial fill of the grid DataTable

			HeaderPanel.Enabled = CanEditMapping;

			Changed = false;
			InSetup = false;
			return;
		}
예제 #3
0
        void Setup()
        {
            InSetup = true;

            //ExportSingleFileCheckEdit.Checked = DtMaps.WriteSingleDataFile;
            //ExportMultipleFilesCheckEdit.Checked = DtMaps.WriteMultipleDataFiles;

            QtSelectorControl.Setup(DataMap);
            QueryTable = null;

            //SummarizationOneRowPerKeyCheckEdit.Checked = DtMaps.SummarizationOneRowPerKey;
            //SummarizationAsIsCheckEdit.Checked = DtMaps.SummarizationAsIs;

            QueryTable = DataMap.QueryTable;

            InSetup = false;

            return;
        }