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
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

-3
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

-4
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

-3
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

+1
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>
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

+1-3
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

-3
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

-3
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

-8
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

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

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +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.Windows.Forms;
5-
64
namespace TestConsole;
75

86
internal class Program

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/DesignSurfaceExt.cs

-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +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.Drawing;
6-
using System.ComponentModel;
7-
using System.Windows.Forms;
8-
using System.ComponentModel.Design.Serialization;
9-
using System.Windows.Forms.Design;
10-
114
namespace DesignSurfaceExt;
125

136
public class DesignSurfaceExt : DesignSurface, IDesignSurfaceExt

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

+1
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>

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/DesignerOptionServiceExt.cs

-3
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 DesignSurfaceExt;
85

96
internal sealed class DesignerOptionServiceExt4SnapLines : DesignerOptionService

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/DesignerSerializationServiceImpl.cs

-4
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.Windows.Forms;
5-
using System.ComponentModel.Design.Serialization;
6-
using System.Collections;
7-
84
namespace DesignSurfaceExt;
95

106
internal sealed class DesignerSerializationServiceImpl : IDesignerSerializationService
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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.ComponentModel;
7+
global using System.ComponentModel.Design;
8+
global using System.ComponentModel.Design.Serialization;
9+
global using System.Windows.Forms.Design;
10+
global using System.Reflection;
11+
global using System.Collections;
12+
global using System.Collections.Concurrent;
13+
global using System.Collections.Immutable;

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/IDesignSurfaceExt.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +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;
6-
using System.ComponentModel;
7-
using System.Drawing;
8-
94
namespace DesignSurfaceExt;
105

116
public interface IDesignSurfaceExt

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/NameCreationServiceImp.cs

-3
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.Serialization;
5-
using System.ComponentModel;
6-
74
// - NameCreationServiceImp - Implementing INameCreationService
85
// - The INameCreationService interface is used to supply a name to the control just created
96
// - In the CreateName() we use the same naming algorithm used by Visual Studio: just

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/PropertyGridExt.cs

-4
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.Design;
5-
using System.Reflection;
6-
using System.Windows.Forms;
7-
84
namespace DesignSurfaceExt;
95

106
public class PropertyGridExt : PropertyGrid

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/TabOrderHooker.cs

-3
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.Reflection;
6-
74
namespace DesignSurfaceExt;
85

96
public class TabOrderHooker

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/TypeDiscoveryService.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +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.Collections;
5-
using System.Collections.Concurrent;
6-
using System.Collections.Immutable;
7-
using System.Reflection;
8-
94
namespace System.ComponentModel.Design;
105

116
/// <summary>

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/UndoEngineExt.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +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-
64
namespace DesignSurfaceExt;
75

86
public class UndoEngineExt : UndoEngine

0 commit comments

Comments
 (0)