private void btnDataValidationAdd_Click(object sender, EventArgs e) { // // Bring up the modeling Training selection dialog box; only allow files // that match the training file input count. int InputDimension = Convert.ToInt32(GPDatabaseUtils.FieldValue(m_Project.DataTrainingID, "tblModelingFile", "InputCount")); fmSelectModelingFile dlg = new fmSelectModelingFile(InputDimension); if (dlg.ShowDialog(this) == DialogResult.OK) { // // Add the selection to the project if (dlg.lvFiles.SelectedItems.Count > 0) { ListViewItem lvSelected = dlg.lvFiles.Items[dlg.lvFiles.SelectedItems[0].Index]; ComboDataItem cbItem = new ComboDataItem(lvSelected.Text, Convert.ToInt32(lvSelected.Tag.ToString())); cbDataValidation.Items.Add(cbItem); // // Add it to the results page also cbResultsDataSet.Items.Add(cbItem); // // Select this item cbDataValidation.SelectedIndex = cbDataValidation.Items.Count - 1; // // Add it to the project and Save m_Project.DataValidation.Add(Convert.ToInt32(lvSelected.Tag.ToString())); m_Project.Save(); } } }
/// <summary> /// Override this method to handle the SelectedThemeChanged event /// </summary> /// <param name="selectedTheme">Selected theme item</param> protected virtual void OnSelectedThemeChanged(ComboDataItem selectedTheme) { }
/// <summary> /// Override this method to handle the SelectedFontSizeChanged event /// </summary> /// <param name="selectedFontSize">Selected font size item</param> protected virtual void OnSelectedFontSizeChanged(ComboDataItem selectedFontSize) { }
/// <summary> /// Override this method to handle the SelectedSourceFileChanged event /// </summary> /// <param name="selectedSourceFile">Selected source file item</param> protected virtual void OnSelectedSourceFileChanged(ComboDataItem selectedSourceFile) { }
/// <summary> /// Override this method to handle the SelectedScenarioChanged event /// </summary> /// <param name="selectedScenario">Selected scenario item</param> protected virtual void OnSelectedScenarioChanged(ComboDataItem selectedScenario) { }
/// <summary> /// Override this method to handle the SelectedDemoChanged event /// </summary> /// <param name="selectedDemo">Selected theme item</param> protected virtual void OnSelectedDemoChanged(ComboDataItem selectedDemo) { }