private void CreateForeignKeyControl( ) { _foreignKeys = new ForeignKeyEdit(); tpFK.Controls.Add(_foreignKeys); _foreignKeys.Parent = tpFK; _foreignKeys.Dock = DockStyle.Fill; }
private void InitializeForeignKeyEditor( ) { _foreignKeyEdit = new ForeignKeyEdit(); panKeyEdit.Controls.Add(_foreignKeyEdit); _foreignKeyEdit.Parent = panKeyEdit; _foreignKeyEdit.Dock = DockStyle.Fill; _foreignKeyEdit.BringToFront(); _foreignKeyEdit.CanUserAddNewKey = false; _foreignKeyEdit.AfterKeyDropped += new ForeignKeyEditorEventHandler(_foreignKeyEdit_AfterKeyDropped); _foreignKeyEdit.AfterKeyRenamed += new ForeignKeyEditorEventHandler(_foreignKeyEdit_AfterKeyRenamed); _foreignKeyEdit.AfterNewKeySaved += new ForeignKeyEditorEventHandler(_foreignKeyEdit_AfterNewKeySaved); }