Skip to content

Commit 8d68587

Browse files
author
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box)
committed
Adds implicit usings to DemoConsole and DesignSurfaceExt projects
1 parent cc63bc6 commit 8d68587

22 files changed

+28
-69
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Windows.Forms;
5-
using System.ComponentModel;
6-
74
namespace TestConsole;
85

9-
[Designer(typeof(CustomButtonDesigner), typeof(System.ComponentModel.Design.IDesigner))]
6+
[Designer(typeof(CustomButtonDesigner), typeof(IDesigner))]
107
public class CustomButton : Button
118
{
129
}

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/CustomControls/CustomButtonDesigner.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.ComponentModel.Design;
5-
using System.Windows.Forms.Design;
6-
74
namespace TestConsole;
85

96
public class CustomButtonDesigner : ControlDesigner

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/CustomControls/CustomButtonDesignerActionList.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.ComponentModel;
5-
using System.ComponentModel.Design;
6-
using System.Drawing;
7-
84
namespace TestConsole;
95

106
public class CustomButtonDesignerActionList : DesignerActionList

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/CustomControls/DesignerActionVerbItem.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.ComponentModel.Design;
5-
using System.Diagnostics;
6-
74
namespace TestConsole;
85

96
internal class DesignerActionVerbItem : DesignerActionMethodItem

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/DemoConsole.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<!-- The files for this project have been removed from the .NET product due to licensing issues. -->
2222
<ExcludeFromDotNetBuild>true</ExcludeFromDotNetBuild>
2323
<IsTestUtilityProject>true</IsTestUtilityProject>
24+
<ImplicitUsings>enable</ImplicitUsings>
2425
</PropertyGroup>
2526

2627
<ItemGroup>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
global using System.Windows.Forms;
5+
global using System.Drawing;
6+
global using System.Diagnostics;
7+
global using System.ComponentModel;
8+
global using System.ComponentModel.Design;
9+
global using System.Windows.Forms.Design;
10+
global using DesignSurfaceExt;
11+
global using Timer = System.Windows.Forms.Timer;

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/MainForm.Designer.cs

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/MainForm.MyScrollableControl.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Drawing;
5-
using System.Windows.Forms;
6-
74
namespace TestConsole;
85

96
public partial class MainForm

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/MainForm.MyUserControl.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Drawing;
5-
using System.Windows.Forms;
6-
74
namespace TestConsole;
85

96
public partial class MainForm

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/MainForm.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Drawing;
5-
using System.Windows.Forms;
6-
using System.ComponentModel.Design;
7-
8-
using DesignSurfaceExt;
9-
using Timer = System.Windows.Forms.Timer;
10-
using System.ComponentModel;
11-
124
namespace TestConsole;
135

146
public partial class MainForm : Form

0 commit comments

Comments
 (0)