1 implementation of CreateTransaction
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
994
DesignerTransaction IDesignerHost.
CreateTransaction
(string description) =>
147 references to CreateTransaction
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
77
using DesignerTransaction t = _host.
CreateTransaction
(designerVerb.Text);
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3023
transaction = host?.
CreateTransaction
(SR.AXEditProperties);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
275
DesignerTransaction? transaction = host?.
CreateTransaction
(string.Format(SR.PropertyGridResetValue, PropertyName));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
570
transaction = host?.
CreateTransaction
(undoText ?? string.Format(SR.PropertyGridSetValue, PropertyDescriptor.Name));
847
transaction = host.
CreateTransaction
(string.Format(
System.Windows.Forms.Design (84)
System\ComponentModel\Design\CollectionEditor.cs (1)
244
transaction = host?.
CreateTransaction
(string.Format(SR.CollectionEditorUndoBatchDesc, CollectionItemType.Name));
System\ComponentModel\Design\ComponentDesigner.cs (1)
291
t = host.
CreateTransaction
(string.Format(SR.ComponentDesignerAddEvent, defaultEvent.Name));
System\ComponentModel\Design\DesignerHost.cs (2)
992
((IDesignerHost)this).
CreateTransaction
(SR.DesignerHostGenericTransactionName);
1020
using (t = ((IDesignerHost)this).
CreateTransaction
(string.Format(SR.DesignerHostDestroyComponentTransaction, name)))
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
215
transaction = host.
CreateTransaction
(string.Format(SR.EventBindingServiceSetValue, site.Name, name));
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
147
DesignerTransaction? changeParent = _designerHost.
CreateTransaction
(string.Format(SR._0_reparent_controls_transaction, nameof(ToolStripContainer)));
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
381
transSource = _srcHost.
CreateTransaction
(transDesc);
386
transTarget = _destHost.
CreateTransaction
(transDesc);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
252
_resizeTransaction = host.
CreateTransaction
(locString);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
119
_resizeTransaction = host.
CreateTransaction
(string.Format(SR.TableLayoutPanelRowColResize, (isColumn ? "Column" : "Row"), _designer.Control.Site.Name));
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
36
DesignerTransaction changeParent = _host.
CreateTransaction
("Add ToolStripContainer Transaction");
System\Windows\Forms\Design\CommandSet.cs (12)
784
? host.
CreateTransaction
(string.Format(SR.DragDropMoveComponents, SelectionService.SelectionCount))
785
: host.
CreateTransaction
(string.Format(SR.DragDropMoveComponent, comp.Site?.Name));
990
trans = host?.
CreateTransaction
(string.Format(SR.CommandSetAlignByPrimary, comps.Count));
1138
trans = host.
CreateTransaction
(string.Format(SR.CommandSetAlignToGrid, selectedComponents.Count));
1265
trans = host.
CreateTransaction
(batchString);
1474
trans = host.
CreateTransaction
(string.Format(SR.CommandSetCutMultiple, cutCount));
1605
trans = host.
CreateTransaction
(desc);
1860
using DesignerTransaction trans = host.
CreateTransaction
(SR.CommandSetPaste);
2320
trans = host?.
CreateTransaction
(string.Format(SR.CommandSetSize, selectedObjects.Length));
2399
trans = host.
CreateTransaction
(string.Format(SR.CommandSetSizeToGrid, selectedObjects.Length));
2483
trans = host.
CreateTransaction
(string.Format(SR.CommandSetPaste, 0));
2536
trans = host.
CreateTransaction
(string.Format(SR.CommandSetFormatSpacing, selectedObjects.Length));
System\Windows\Forms\Design\ComponentTray.cs (4)
305
t = host.
CreateTransaction
(SR.TrayShowLargeIcons);
321
t = host.
CreateTransaction
(SR.TrayLineUpIcons);
410
t = host.
CreateTransaction
(SR.TrayAutoArrange);
2502
trans = host.
CreateTransaction
(string.Format(SR.WindowsFormsAddEvent, defaultEvent.Name));
System\Windows\Forms\Design\ControlCommandSet.cs (4)
600
trans = host.
CreateTransaction
(string.Format(SR.DragDropSizeComponents, selSvc.SelectionCount));
604
trans = host.
CreateTransaction
(string.Format(SR.DragDropSizeComponent, comp.Site.Name));
862
trans = host.
CreateTransaction
(string.Format(SR.CommandSetLockControls, components.Count));
1008
trans = designerHost.
CreateTransaction
(batchString);
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
61
using DesignerTransaction t = _host.
CreateTransaction
(designerVerb.Text);
System\Windows\Forms\Design\DataGridViewDesigner.cs (11)
748
DesignerTransaction? transaction = host?.
CreateTransaction
(SR.DataGridViewEditColumnsTransactionString);
771
DesignerTransaction? transaction = host?.
CreateTransaction
(SR.DataGridViewAddColumnTransactionString);
845
DesignerTransaction? transaction = host?.
CreateTransaction
(string.Format(SR.DataGridViewChooseDataSourceTransactionString, dataGridView.Name));
927
transaction = host?.
CreateTransaction
(SR.DataGridViewEnableAddingTransactionString);
931
transaction = host?.
CreateTransaction
(SR.DataGridViewDisableAddingTransactionString);
970
transaction = host?.
CreateTransaction
(SR.DataGridViewEnableDeletingTransactionString);
974
transaction = host?.
CreateTransaction
(SR.DataGridViewDisableDeletingTransactionString);
1013
transaction = host?.
CreateTransaction
(SR.DataGridViewEnableColumnReorderingTransactionString);
1017
transaction = host?.
CreateTransaction
(SR.DataGridViewDisableColumnReorderingTransactionString);
1056
transaction = host?.
CreateTransaction
(SR.DataGridViewEnableEditingTransactionString);
1060
transaction = host?.
CreateTransaction
(SR.DataGridViewDisableEditingTransactionString);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1280
DesignerTransaction? trans = _designerHost.
CreateTransaction
(string.Format(SR.DesignerBatchCreateTool, uniqueSiteName));
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
568
? host.
CreateTransaction
(GetTransactionDescription(performCopy))
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
231
trans = host.
CreateTransaction
(string.Format(SR.DragDropMoveComponents, _components.Length));
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
155
trans = host?.
CreateTransaction
(string.Format(SR.DesignerBatchCreateTool, tool));
524
trans = host.
CreateTransaction
(string.Format(SR.DragDropDragComponents, components.Length));
732
trans = host.
CreateTransaction
(SR.DragDropDropComponents);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2134
using DesignerTransaction dt = host.
CreateTransaction
(transactionName);
System\Windows\Forms\Design\SelectionUIService.cs (3)
1022
_dragTransaction = _host.
CreateTransaction
(transactionName);
1126
trans = _host.
CreateTransaction
(string.Format(SR.DragDropMoveComponents, components.Length));
1132
trans = _host.
CreateTransaction
(string.Format(SR.DragDropMoveComponent, comp.Site!.Name));
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
105
DesignerTransaction createMenu = _host.
CreateTransaction
(SR.StandardMenuCreateDesc);
280
DesignerTransaction createMenu = _host.
CreateTransaction
(SR.StandardMenuCreateDesc);
System\Windows\Forms\Design\TabControlDesigner.cs (2)
250
t = host.
CreateTransaction
(string.Format(SR.TabControlAddTab, Component.Site.Name));
345
t = host.
CreateTransaction
(string.Format(SR.TabControlRemoveTab, ((IComponent)tp).Site.Name, Component.Site.Name));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (7)
505
trans = host.
CreateTransaction
(string.Format(SR.BehaviorServiceCopyControl, control.Site.Name));
524
trans = host.
CreateTransaction
(string.Format(SR.TableLayoutPanelDesignerControlsSwapped, control.Site.Name, existingControl.Site.Name));
552
trans = host.
CreateTransaction
(string.Format(SR.BehaviorServiceMoveControl, control.Site.Name));
1639
using DesignerTransaction t = host.
CreateTransaction
(
1755
using DesignerTransaction t = host.
CreateTransaction
(string.Format(
1878
using DesignerTransaction t = host.
CreateTransaction
(string.Format(
1975
using DesignerTransaction t = host.
CreateTransaction
(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name));
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
69
DesignerTransaction newItemTransaction = designerHost.
CreateTransaction
(SR.ToolStripAddingItem);
System\Windows\Forms\Design\ToolStripDesigner.cs (5)
510
NewItemTransaction = _host.
CreateTransaction
(SR.ToolStripCreatingNewItemTransaction);
566
DesignerTransaction outerTransaction = _host.
CreateTransaction
(string.Format(SR.ToolStripAddingItem, t.Name));
999
_insertMenuItemTransaction = _pendingTransaction = _host.
CreateTransaction
(SR.ToolStripDesignerTransactionAddingItem);
1116
_pendingTransaction = _host.
CreateTransaction
(SR.ToolStripDesignerTransactionRemovingItem);
1853
DesignerTransaction changeParent = _host.
CreateTransaction
(transDesc);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
676
DesignerTransaction designerTransaction = designerHost.
CreateTransaction
(transDesc);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
386
DesignerTransaction newItemTransaction = designerHost.
CreateTransaction
(SR.ToolStripAddingItem);
437
DesignerTransaction newItemTransaction = designerHost.
CreateTransaction
(SR.ToolStripAddingItem);
476
DesignerTransaction newItemTransaction = designerHost.
CreateTransaction
(SR.ToolStripAddingItem);
516
DesignerTransaction newItemTransaction = designerHost.
CreateTransaction
(SR.ToolStripAddingItem);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
370
DesignerTransaction designerTransaction = designerHost.
CreateTransaction
(SR.ToolStripItemPropertyChangeTransaction);
723
DesignerTransaction designerTransaction = host.
CreateTransaction
(SR.ToolStripMorphingItemTransaction);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (7)
538
DesignerTransaction designerTransaction = _designerHost.
CreateTransaction
(SR.ToolStripItemPropertyChangeTransaction);
791
_newMenuItemTransaction ??= _designerHost.
CreateTransaction
(SR.ToolStripCreatingNewItemTransaction);
856
DesignerTransaction outerTransaction = _designerHost.
CreateTransaction
(SR.ToolStripCreatingNewItemTransaction);
1857
mainStripDesigner.InsertTransaction = _designerHost.
CreateTransaction
(SR.ToolStripInsertingIntoDropDownTransaction);
1866
_insertMenuItemTransaction = _designerHost.
CreateTransaction
(SR.ToolStripInsertingIntoDropDownTransaction);
1981
_pendingTransaction = _designerHost.
CreateTransaction
(SR.ToolStripDesignerTransactionRemovingItem);
2713
DesignerTransaction changeParent = host.
CreateTransaction
(transDesc);
System.Windows.Forms.Design.Tests (58)
System\ComponentModel\Design\CollectionEditorTests.cs (8)
207
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
254
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
311
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
461
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
566
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
612
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
659
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
702
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
System\ComponentModel\Design\CollectionFormTests.cs (3)
558
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
606
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
664
.Setup(h => h.
CreateTransaction
("Add or remove Int32 objects"))
System\ComponentModel\Design\ComponentDesignerTests.cs (25)
798
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
844
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(3));
865
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(6));
913
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
959
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Once());
972
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(2));
1022
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
1072
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Once());
1096
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(2));
1130
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
1178
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Once());
1189
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(2));
1223
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
1271
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Once());
1282
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(2));
1314
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
1361
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Once());
1372
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(2));
1408
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
1457
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Once());
1470
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(2));
1515
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
1564
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Once());
1577
mockDesignerHost.Verify(h => h.
CreateTransaction
(It.IsAny<string>()), Times.Exactly(2));
1613
.Setup(h => h.
CreateTransaction
(It.IsAny<string>()))
System\ComponentModel\Design\DesignerHostTests.cs (19)
1896
DesignerTransaction transaction1 = host.
CreateTransaction
(description);
1903
DesignerTransaction transaction2 = host.
CreateTransaction
("CustomDescription");
1938
DesignerTransaction transaction1 = host.
CreateTransaction
("Description1");
1943
DesignerTransaction transaction2 = host.
CreateTransaction
("Description2");
1950
DesignerTransaction transaction3 = host.
CreateTransaction
("Description2");
1964
DesignerTransaction transaction1 = host.
CreateTransaction
("Description1");
1965
DesignerTransaction transaction2 = host.
CreateTransaction
("Description2");
2006
DesignerTransaction transaction1 = host.
CreateTransaction
("Description1");
2007
DesignerTransaction transaction2 = host.
CreateTransaction
("Description2");
2055
DesignerTransaction transaction3 = host.
CreateTransaction
("Description1");
2067
DesignerTransaction transaction1 = host.
CreateTransaction
("Description1");
2068
DesignerTransaction transaction2 = host.
CreateTransaction
("Description2");
2077
DesignerTransaction transaction1 = host.
CreateTransaction
("Description1");
2078
DesignerTransaction transaction2 = host.
CreateTransaction
("Description2");
2119
DesignerTransaction transaction1 = host.
CreateTransaction
("Description1");
2120
DesignerTransaction transaction2 = host.
CreateTransaction
("Description2");
2168
DesignerTransaction transaction3 = host.
CreateTransaction
("Description1");
2180
DesignerTransaction transaction1 = host.
CreateTransaction
("Description1");
2181
DesignerTransaction transaction2 = host.
CreateTransaction
("Description2");
System\ComponentModel\Design\DesignSurfaceTests.cs (3)
1206
DesignerTransaction transaction = host.
CreateTransaction
("Transaction1");
1325
DesignerTransaction transaction = host.
CreateTransaction
("Transaction1");
1350
DesignerTransaction transaction = host.
CreateTransaction
("Transaction1");