public static IForeignKey RunFk(ITableStructure table, string activeColumn, ISqlDialect dialect) { var win = new SelectReferenceForm(table, activeColumn, null, dialect); win.ShowDialogEx(); return(win.m_resultFk); }
public static ReferenceViewDefinition Run(ITableStructure table, string activeColumn, List <string> availcols, ISqlDialect dialect) { var win = new SelectReferenceForm(table, activeColumn, availcols, dialect); win.ShowDialogEx(); return(win.m_result); }
private void mnuAddReferencedTable_Click(object sender, EventArgs e) { var fk = SelectReferenceForm.RunFk(m_table, null, null); if (fk != null) { m_frame.AddTable(fk.PrimaryKeyTable == m_table.FullName ? fk.Table.FullName : fk.PrimaryKeyTable, this, fk); } }