1 type derived from DesignerTransaction
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.DesignerHostTransaction.cs (1)
11private sealed class DesignerHostTransaction : DesignerTransaction
144 references to DesignerTransaction
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
77using 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)
109DesignerTransaction CreateTransaction(); 119DesignerTransaction CreateTransaction(string description);
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3021DesignerTransaction? transaction = null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (2)
183DesignerTransaction? transaction = DesignerHost?.CreateTransaction(); 275DesignerTransaction? transaction = host?.CreateTransaction(string.Format(SR.PropertyGridResetValue, PropertyName));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
556DesignerTransaction? transaction = null; 828DesignerTransaction? transaction = null;
System.Windows.Forms.Design (92)
System\ComponentModel\Design\CollectionEditor.cs (1)
234DesignerTransaction? transaction = null;
System\ComponentModel\Design\ComponentDesigner.cs (1)
260DesignerTransaction? t = null;
System\ComponentModel\Design\DesignerHost.cs (7)
52private Stack<DesignerTransaction>? _transactions; // stack of transactions 715DesignerTransaction t = ((IDesignerHost)this).CreateTransaction(); 792while (_transactions.TryPeek(out DesignerTransaction transaction)) 878_transactions is not null && _transactions.TryPeek(out DesignerTransaction? transaction) 991DesignerTransaction IDesignerHost.CreateTransaction() => 994DesignerTransaction IDesignerHost.CreateTransaction(string description) => 1019DesignerTransaction t;
System\ComponentModel\Design\DesignerHost.DesignerHostTransaction.cs (3)
18_host._transactions ??= new Stack<DesignerTransaction>(); 35Stack<DesignerTransaction> transactions = _host._transactions!; 68Stack<DesignerTransaction> transactions = _host._transactions!;
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
211DesignerTransaction? transaction = null;
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
147DesignerTransaction? changeParent = _designerHost.CreateTransaction(string.Format(SR._0_reparent_controls_transaction, nameof(ToolStripContainer)));
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
376DesignerTransaction? transaction = null;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
360DesignerTransaction transSource = null; 361DesignerTransaction transTarget = null;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
34private DesignerTransaction _resizeTransaction; // the transaction we create for the resize 415DesignerTransaction t = _resizeTransaction; 960DesignerTransaction t = _resizeTransaction;
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
20private DesignerTransaction _resizeTransaction; // used to make size adjustments within transaction 77DesignerTransaction t = _resizeTransaction; 395DesignerTransaction t = _resizeTransaction;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
137using DesignerTransaction transaction = host.CreateTransaction(GetTransactionDescription());
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
36DesignerTransaction changeParent = _host.CreateTransaction("Add ToolStripContainer Transaction");
System\Windows\Forms\Design\CommandSet.cs (12)
783DesignerTransaction trans = SelectionService.SelectionCount > 1 987DesignerTransaction? trans = null; 1132DesignerTransaction? trans = null; 1255DesignerTransaction? trans = null; 1469DesignerTransaction? trans = null; 1598DesignerTransaction? trans = null; 1860using DesignerTransaction trans = host.CreateTransaction(SR.CommandSetPaste); 2246DesignerTransaction? trans = null; 2316DesignerTransaction? trans = null; 2383DesignerTransaction? trans = null; 2479DesignerTransaction? trans = null; 2512DesignerTransaction? trans = null;
System\Windows\Forms\Design\ComponentTray.cs (4)
302DesignerTransaction t = null; 318DesignerTransaction t = null; 406DesignerTransaction t = null; 2496DesignerTransaction trans = null;
System\Windows\Forms\Design\ControlCommandSet.cs (3)
597DesignerTransaction trans; 858DesignerTransaction trans = null; 985DesignerTransaction trans = null;
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
61using DesignerTransaction t = _host.CreateTransaction(designerVerb.Text);
System\Windows\Forms\Design\DataGridViewDesigner.cs (7)
748DesignerTransaction? transaction = host?.CreateTransaction(SR.DataGridViewEditColumnsTransactionString); 771DesignerTransaction? transaction = host?.CreateTransaction(SR.DataGridViewAddColumnTransactionString); 845DesignerTransaction? transaction = host?.CreateTransaction(string.Format(SR.DataGridViewChooseDataSourceTransactionString, dataGridView.Name)); 923DesignerTransaction? transaction; 966DesignerTransaction? transaction; 1009DesignerTransaction? transaction; 1052DesignerTransaction? transaction;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1280DesignerTransaction? trans = _designerHost.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, uniqueSiteName));
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
567DesignerTransaction designerTransaction = TryGetService(out IDesignerHost host)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
213DesignerTransaction? trans = null;
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
149DesignerTransaction? trans = null; 521DesignerTransaction? trans = null; 728DesignerTransaction? trans = null;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2134using DesignerTransaction dt = host.CreateTransaction(transactionName);
System\Windows\Forms\Design\SelectionUIService.cs (2)
54private DesignerTransaction? _dragTransaction; 1120DesignerTransaction? trans = null;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
105DesignerTransaction createMenu = _host.CreateTransaction(SR.StandardMenuCreateDesc); 280DesignerTransaction createMenu = _host.CreateTransaction(SR.StandardMenuCreateDesc);
System\Windows\Forms\Design\TabControlDesigner.cs (2)
245DesignerTransaction t = null; 340DesignerTransaction t = null;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
488DesignerTransaction trans = null; 1639using DesignerTransaction t = host.CreateTransaction( 1755using DesignerTransaction t = host.CreateTransaction(string.Format( 1878using DesignerTransaction t = host.CreateTransaction(string.Format( 1975using DesignerTransaction t = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name));
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
69DesignerTransaction newItemTransaction = designerHost.CreateTransaction(SR.ToolStripAddingItem);
System\Windows\Forms\Design\ToolStripDesigner.cs (7)
33private DesignerTransaction _insertMenuItemTransaction; // There Should be one and only one Pending insertTransaction. 39private DesignerTransaction _pendingTransaction; // our transaction for adding/removing items. 54private DesignerTransaction _newItemTransaction; 330public DesignerTransaction InsertTransaction 363public DesignerTransaction NewItemTransaction 566DesignerTransaction outerTransaction = _host.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name)); 1853DesignerTransaction changeParent = _host.CreateTransaction(transDesc);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
676DesignerTransaction designerTransaction = designerHost.CreateTransaction(transDesc);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (5)
352private static void TryCancelTransaction(ref DesignerTransaction transaction) 386DesignerTransaction newItemTransaction = designerHost.CreateTransaction(SR.ToolStripAddingItem); 437DesignerTransaction newItemTransaction = designerHost.CreateTransaction(SR.ToolStripAddingItem); 476DesignerTransaction newItemTransaction = designerHost.CreateTransaction(SR.ToolStripAddingItem); 516DesignerTransaction newItemTransaction = designerHost.CreateTransaction(SR.ToolStripAddingItem);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
370DesignerTransaction designerTransaction = designerHost.CreateTransaction(SR.ToolStripItemPropertyChangeTransaction); 723DesignerTransaction designerTransaction = host.CreateTransaction(SR.ToolStripMorphingItemTransaction);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (6)
43private DesignerTransaction _pendingTransaction; 51private DesignerTransaction _insertMenuItemTransaction; 58private DesignerTransaction _newMenuItemTransaction; 538DesignerTransaction designerTransaction = _designerHost.CreateTransaction(SR.ToolStripItemPropertyChangeTransaction); 856DesignerTransaction outerTransaction = _designerHost.CreateTransaction(SR.ToolStripCreatingNewItemTransaction); 2713DesignerTransaction 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); 604Mock<DesignerTransaction> mockTransaction = new(MockBehavior.Strict); 651Mock<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) 995Mock<DesignerTransaction> mockTransaction = new(MockBehavior.Strict); 1295Mock<DesignerTransaction> mockTransaction = new(MockBehavior.Strict); 1385Mock<DesignerTransaction> mockTransaction = new(MockBehavior.Strict); 1492Mock<DesignerTransaction> mockTransaction = new(MockBehavior.Strict); 1614.Returns<DesignerTransaction>(null)
System\ComponentModel\Design\DesignerHostTests.cs (21)
1871DesignerTransaction transaction1 = host.CreateTransaction(); 1878DesignerTransaction transaction2 = host.CreateTransaction(); 1896DesignerTransaction transaction1 = host.CreateTransaction(description); 1903DesignerTransaction transaction2 = host.CreateTransaction("CustomDescription"); 1938DesignerTransaction transaction1 = host.CreateTransaction("Description1"); 1943DesignerTransaction transaction2 = host.CreateTransaction("Description2"); 1950DesignerTransaction transaction3 = host.CreateTransaction("Description2"); 1964DesignerTransaction transaction1 = host.CreateTransaction("Description1"); 1965DesignerTransaction transaction2 = host.CreateTransaction("Description2"); 2006DesignerTransaction transaction1 = host.CreateTransaction("Description1"); 2007DesignerTransaction transaction2 = host.CreateTransaction("Description2"); 2055DesignerTransaction transaction3 = host.CreateTransaction("Description1"); 2067DesignerTransaction transaction1 = host.CreateTransaction("Description1"); 2068DesignerTransaction transaction2 = host.CreateTransaction("Description2"); 2077DesignerTransaction transaction1 = host.CreateTransaction("Description1"); 2078DesignerTransaction transaction2 = host.CreateTransaction("Description2"); 2119DesignerTransaction transaction1 = host.CreateTransaction("Description1"); 2120DesignerTransaction transaction2 = host.CreateTransaction("Description2"); 2168DesignerTransaction transaction3 = host.CreateTransaction("Description1"); 2180DesignerTransaction transaction1 = host.CreateTransaction("Description1"); 2181DesignerTransaction transaction2 = host.CreateTransaction("Description2");
System\ComponentModel\Design\DesignSurfaceTests.cs (3)
1206DesignerTransaction transaction = host.CreateTransaction("Transaction1"); 1325DesignerTransaction transaction = host.CreateTransaction("Transaction1"); 1350DesignerTransaction transaction = host.CreateTransaction("Transaction1");