1 type derived from DesignerTransaction
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.DesignerHostTransaction.cs (1)
11
private sealed class DesignerHostTransaction :
DesignerTransaction
144 references to DesignerTransaction
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
77
using
DesignerTransaction
t = _host.CreateTransaction(designerVerb.Text);
netstandard (1)
netstandard.cs (1)
239
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
DesignerTransaction
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
225
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
DesignerTransaction
))]
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\IDesignerHost.cs (2)
109
DesignerTransaction
CreateTransaction();
119
DesignerTransaction
CreateTransaction(string description);
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3020
DesignerTransaction
? transaction = null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (2)
183
DesignerTransaction
? transaction = DesignerHost?.CreateTransaction();
275
DesignerTransaction
? transaction = host?.CreateTransaction(string.Format(SR.PropertyGridResetValue, PropertyName));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
556
DesignerTransaction
? transaction = null;
828
DesignerTransaction
? transaction = null;
System.Windows.Forms.Design (92)
System\ComponentModel\Design\CollectionEditor.cs (1)
234
DesignerTransaction
? transaction = null;
System\ComponentModel\Design\ComponentDesigner.cs (1)
260
DesignerTransaction
? t = null;
System\ComponentModel\Design\DesignerHost.cs (7)
52
private Stack<
DesignerTransaction
>? _transactions; // stack of transactions
715
DesignerTransaction
t = ((IDesignerHost)this).CreateTransaction();
792
while (_transactions.TryPeek(out
DesignerTransaction
transaction))
878
_transactions is not null && _transactions.TryPeek(out
DesignerTransaction
? transaction)
991
DesignerTransaction
IDesignerHost.CreateTransaction() =>
994
DesignerTransaction
IDesignerHost.CreateTransaction(string description) =>
1019
DesignerTransaction
t;
System\ComponentModel\Design\DesignerHost.DesignerHostTransaction.cs (3)
18
_host._transactions ??= new Stack<
DesignerTransaction
>();
35
Stack<
DesignerTransaction
> transactions = _host._transactions!;
68
Stack<
DesignerTransaction
> transactions = _host._transactions!;
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
211
DesignerTransaction
? transaction = null;
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
147
DesignerTransaction
? changeParent = _designerHost.CreateTransaction(string.Format(SR._0_reparent_controls_transaction, nameof(ToolStripContainer)));
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
376
DesignerTransaction
? transaction = null;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
360
DesignerTransaction
transSource = null;
361
DesignerTransaction
transTarget = null;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
34
private
DesignerTransaction
_resizeTransaction; // the transaction we create for the resize
415
DesignerTransaction
t = _resizeTransaction;
960
DesignerTransaction
t = _resizeTransaction;
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
20
private
DesignerTransaction
_resizeTransaction; // used to make size adjustments within transaction
77
DesignerTransaction
t = _resizeTransaction;
395
DesignerTransaction
t = _resizeTransaction;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
137
using
DesignerTransaction
transaction = host.CreateTransaction(GetTransactionDescription());
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
36
DesignerTransaction
changeParent = _host.CreateTransaction("Add ToolStripContainer Transaction");
System\Windows\Forms\Design\CommandSet.cs (12)
783
DesignerTransaction
trans = SelectionService.SelectionCount > 1
987
DesignerTransaction
? trans = null;
1132
DesignerTransaction
? trans = null;
1255
DesignerTransaction
? trans = null;
1469
DesignerTransaction
? trans = null;
1598
DesignerTransaction
? trans = null;
1860
using
DesignerTransaction
trans = host.CreateTransaction(SR.CommandSetPaste);
2246
DesignerTransaction
? trans = null;
2316
DesignerTransaction
? trans = null;
2383
DesignerTransaction
? trans = null;
2479
DesignerTransaction
? trans = null;
2512
DesignerTransaction
? trans = null;
System\Windows\Forms\Design\ComponentTray.cs (4)
302
DesignerTransaction
t = null;
318
DesignerTransaction
t = null;
406
DesignerTransaction
t = null;
2496
DesignerTransaction
trans = null;
System\Windows\Forms\Design\ControlCommandSet.cs (3)
597
DesignerTransaction
trans;
858
DesignerTransaction
trans = null;
985
DesignerTransaction
trans = null;
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
61
using
DesignerTransaction
t = _host.CreateTransaction(designerVerb.Text);
System\Windows\Forms\Design\DataGridViewDesigner.cs (7)
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));
923
DesignerTransaction
? transaction;
966
DesignerTransaction
? transaction;
1009
DesignerTransaction
? transaction;
1052
DesignerTransaction
? transaction;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1280
DesignerTransaction
? trans = _designerHost.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, uniqueSiteName));
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
567
DesignerTransaction
designerTransaction = TryGetService(out IDesignerHost host)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
213
DesignerTransaction
? trans = null;
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
149
DesignerTransaction
? trans = null;
521
DesignerTransaction
? trans = null;
728
DesignerTransaction
? trans = null;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2134
using
DesignerTransaction
dt = host.CreateTransaction(transactionName);
System\Windows\Forms\Design\SelectionUIService.cs (2)
54
private
DesignerTransaction
? _dragTransaction;
1120
DesignerTransaction
? trans = null;
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)
245
DesignerTransaction
t = null;
340
DesignerTransaction
t = null;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
488
DesignerTransaction
trans = null;
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 (7)
33
private
DesignerTransaction
_insertMenuItemTransaction; // There Should be one and only one Pending insertTransaction.
39
private
DesignerTransaction
_pendingTransaction; // our transaction for adding/removing items.
54
private
DesignerTransaction
_newItemTransaction;
330
public
DesignerTransaction
InsertTransaction
363
public
DesignerTransaction
NewItemTransaction
566
DesignerTransaction
outerTransaction = _host.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name));
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 (5)
352
private static void TryCancelTransaction(ref
DesignerTransaction
transaction)
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 (6)
43
private
DesignerTransaction
_pendingTransaction;
51
private
DesignerTransaction
_insertMenuItemTransaction;
58
private
DesignerTransaction
_newMenuItemTransaction;
538
DesignerTransaction
designerTransaction = _designerHost.CreateTransaction(SR.ToolStripItemPropertyChangeTransaction);
856
DesignerTransaction
outerTransaction = _designerHost.CreateTransaction(SR.ToolStripCreatingNewItemTransaction);
2713
DesignerTransaction
changeParent = host.CreateTransaction(transDesc);
System.Windows.Forms.Design.Tests (42)
System\ComponentModel\Design\CollectionEditorTests.cs (8)
208
.Returns((
DesignerTransaction
)null);
255
.Returns((
DesignerTransaction
)null);
312
.Returns((
DesignerTransaction
)null);
462
.Returns((
DesignerTransaction
)null);
567
.Returns((
DesignerTransaction
)null);
604
Mock<
DesignerTransaction
> mockTransaction = new(MockBehavior.Strict);
651
Mock<
DesignerTransaction
> mockTransaction = new(MockBehavior.Strict);
703
.Returns((
DesignerTransaction
)null);
System\ComponentModel\Design\CollectionFormTests.cs (3)
559
.Returns((
DesignerTransaction
)null);
607
.Returns((
DesignerTransaction
)null);
665
.Returns((
DesignerTransaction
)null);
System\ComponentModel\Design\ComponentDesignerTests.cs (7)
799
.Returns<
DesignerTransaction
>(null)
914
.Returns<
DesignerTransaction
>(null)
995
Mock<
DesignerTransaction
> mockTransaction = new(MockBehavior.Strict);
1295
Mock<
DesignerTransaction
> mockTransaction = new(MockBehavior.Strict);
1385
Mock<
DesignerTransaction
> mockTransaction = new(MockBehavior.Strict);
1492
Mock<
DesignerTransaction
> mockTransaction = new(MockBehavior.Strict);
1614
.Returns<
DesignerTransaction
>(null)
System\ComponentModel\Design\DesignerHostTests.cs (21)
1871
DesignerTransaction
transaction1 = host.CreateTransaction();
1878
DesignerTransaction
transaction2 = host.CreateTransaction();
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");