public static void Show(DbMapper dbMapper, IPropertySymbol dbTable, AddRelationshipDelegate addRelationship) { new RelationshipWindow().ShowDialog(dbMapper, dbTable, addRelationship); }
private void ShowDialog(DbMapper dbMapper, IPropertySymbol dbTable, AddRelationshipDelegate addRelationship) { _presenter = new Presenter(dbMapper, dbTable, this); _addRelationship = addRelationship; ShowDialog(); }
public void Execute(AddRelationshipDelegate addRelationship) { addRelationship(_name.Value, _foreignKey.Value, _refTable.Value, _description.Value, _deleteRule.Value, _updateRule.Value); }