15 references to ActiveDesignerEventArgs
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerEventService.cs (1)
71
(_events?[s_eventActiveDesignerChanged] as ActiveDesignerEventHandler)?.Invoke(this, new
ActiveDesignerEventArgs
(oldDesigner, host));
System\ComponentModel\Design\DesignerHost.cs (1)
363
OnActiveDesignerChanged(sender: null, new
ActiveDesignerEventArgs
(oldDesigner: null, this));
System.Windows.Forms.Design.Tests (10)
System\ComponentModel\Design\DesignerHostTests.cs (10)
2439
yield return new object[] { new
ActiveDesignerEventArgs
(s_placeholderHost, s_placeholderHost), 0, 1, 1 };
2440
yield return new object[] { new
ActiveDesignerEventArgs
(s_placeholderHost, otherHost), 0, 1, 1 };
2441
yield return new object[] { new
ActiveDesignerEventArgs
(s_placeholderHost, null), 0, 1, 1 };
2443
yield return new object[] { new
ActiveDesignerEventArgs
(otherHost, s_placeholderHost), 1, 0, 0 };
2444
yield return new object[] { new
ActiveDesignerEventArgs
(otherHost, otherHost), 0, 0, 0 };
2445
yield return new object[] { new
ActiveDesignerEventArgs
(otherHost, null), 0, 0, 0 };
2447
yield return new object[] { new
ActiveDesignerEventArgs
(null, s_placeholderHost), 1, 0, 0 };
2448
yield return new object[] { new
ActiveDesignerEventArgs
(null, otherHost), 0, 0, 0 };
2449
yield return new object[] { new
ActiveDesignerEventArgs
(null, null), 0, 0, 0 };
2505
actualEventArgs = new
ActiveDesignerEventArgs
(oldDesigner, newDesigner);
System.Windows.Forms.Tests (3)
System\Windows\Forms\Design\EventsTabTests.cs (3)
111
new
ActiveDesignerEventArgs
(null, nullMockDesignerHost.Object),
112
new
ActiveDesignerEventArgs
(null, invalidMockDesignerHost.Object),
113
new
ActiveDesignerEventArgs
(null, mockDesignerHost.Object)