public static bool Display(EditingInfo editingInfo) { var window = new TableChooserWindow(editingInfo); window.Owner = Application.Current.MainWindow; return(window.ShowDialog() ?? false); }
public void EditValue(Property property, object designer) { DbBulkCopyDesigner dbBulkCopyDesigner = (DbBulkCopyDesigner)designer; var editingInfo = new EditingInfo(dbBulkCopyDesigner); if (TableChooserWindow.Display(editingInfo)) { dbBulkCopyDesigner.Context.TransactionManager.StartTransaction("Change table"); editingInfo.UpdateDesigner(dbBulkCopyDesigner); dbBulkCopyDesigner.Context.TransactionManager.StopTransaction(); } }