private void MenuItem_新建数据表_Click_1(object sender, RoutedEventArgs e) { MenuItem item = (MenuItem)sender; ContextMenu menu = (ContextMenu)item.Parent; var obj = (StackPanel)menu.PlacementTarget; DatabaseItemNode dbnode = (DatabaseItemNode)obj.Tag; Forms.DBTableEditor frm = new Forms.DBTableEditor(dbnode, null); frm.Owner = this; frm.ShowDialog(); }
public MyClassProperty(DBTableEditor editor) { _editor = editor; this.ForeignKeys = new System.Collections.ObjectModel.ObservableCollection <数据列基本信息>(); }