Example #1
0
        private void ShowFieldSelection(string tableName)
        {
            FieldSelectionDialog fieldSelection = new FieldSelectionDialog(MainForm, page.GetProject(), tableName);
            DialogResult         result         = fieldSelection.ShowDialog();

            if (result == DialogResult.OK)
            {
                textColumnName = fieldSelection.ColumnName;
                codeTable      = GetProject().GetTableData(tableName, textColumnName, string.Empty);
                fieldSelection.Close();
                DisplayData();
                isExclusiveTable = true;
            }
        }
Example #2
0
        private IFieldDefinition SelectFieldDefinition()
        {
            var fieldDefinitions = GetFieldDefinitions();

            if (fieldDefinitions == null)
            {
                MessageBox.Show("No field definitions available");
                return(null);
            }

            var dialog = new FieldSelectionDialog()
            {
                Fields = fieldDefinitions
            };

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                return(dialog.Field);
            }
            else
            {
                return(null);
            }
        }
 private void ShowFieldSelection(string tableName)
 {
     FieldSelectionDialog fieldSelection = new FieldSelectionDialog(MainForm, page.GetProject(), tableName);
     DialogResult result = fieldSelection.ShowDialog();
     if (result == DialogResult.OK)
     {
         textColumnName = fieldSelection.ColumnName;
         codeTable = GetProject().GetTableData(tableName, textColumnName, string.Empty);
         fieldSelection.Close();
         DisplayData();
         isExclusiveTable = true;
     }
 }