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)
363OnActiveDesignerChanged(sender: null, new ActiveDesignerEventArgs(oldDesigner: null, this));
System.Windows.Forms.Design.Tests (10)
System\ComponentModel\Design\DesignerHostTests.cs (10)
2439yield return new object[] { new ActiveDesignerEventArgs(s_placeholderHost, s_placeholderHost), 0, 1, 1 }; 2440yield return new object[] { new ActiveDesignerEventArgs(s_placeholderHost, otherHost), 0, 1, 1 }; 2441yield return new object[] { new ActiveDesignerEventArgs(s_placeholderHost, null), 0, 1, 1 }; 2443yield return new object[] { new ActiveDesignerEventArgs(otherHost, s_placeholderHost), 1, 0, 0 }; 2444yield return new object[] { new ActiveDesignerEventArgs(otherHost, otherHost), 0, 0, 0 }; 2445yield return new object[] { new ActiveDesignerEventArgs(otherHost, null), 0, 0, 0 }; 2447yield return new object[] { new ActiveDesignerEventArgs(null, s_placeholderHost), 1, 0, 0 }; 2448yield return new object[] { new ActiveDesignerEventArgs(null, otherHost), 0, 0, 0 }; 2449yield return new object[] { new ActiveDesignerEventArgs(null, null), 0, 0, 0 }; 2505actualEventArgs = new ActiveDesignerEventArgs(oldDesigner, newDesigner);
System.Windows.Forms.Tests (3)
System\Windows\Forms\Design\EventsTabTests.cs (3)
111new ActiveDesignerEventArgs(null, nullMockDesignerHost.Object), 112new ActiveDesignerEventArgs(null, invalidMockDesignerHost.Object), 113new ActiveDesignerEventArgs(null, mockDesignerHost.Object)