Exemple #1
0
        public static bool Display(EditingInfo editingInfo)
        {
            var window = new TableChooserWindow(editingInfo);

            window.Owner = Application.Current.MainWindow;
            return(window.ShowDialog() ?? false);
        }
Exemple #2
0
        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();
            }
        }