private void FillAvailableColSources(DataGridViewComboBoxColumn col, DmlfRelation rel, ITableStructure ts)
 {
     foreach (var cs in ts.Columns)
     {
         var tpc = new DmlfColumnRef
         {
             Source     = rel != null ? rel.Reference : DmlfSource.BaseTable,
             ColumnName = cs.ColumnName,
         };
         m_colSources[tpc.ToString()] = tpc;
         col.Items.Add(tpc.ToString());
     }
 }
        void addTableItem_Click(object sender, EventArgs e)
        {
            var item = (ToolStripItem)sender;
            var rel  = (DmlfRelation)item.Tag;
            var ts   = GetTableStruct(rel);

            foreach (var col in ts.Columns)
            {
                var tpc = new DmlfColumnRef {
                    Source = rel != null ? rel.Reference : DmlfSource.BaseTable, ColumnName = col.ColumnName
                };
                dataGridViewColumns.Rows.Add(col.ColumnName, tpc.ToString(), null);
            }
        }
Exemplo n.º 3
0
 internal void Click()
 {
     Edit.Text = Column.ToString();
 }