Why where imports broken?

This commit is contained in:
JFronny 2020-05-25 19:32:53 +02:00
parent f6950a0d4c
commit 5f3fb98999
32 changed files with 149 additions and 30 deletions

View File

@ -1,4 +1,8 @@
using CC_Functions.W32.DCDrawer;
using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using CC_Functions.W32.DCDrawer;
using CC_Functions.W32.Forms;
using CC_Functions.W32.Hooks;
using static CC_Functions.W32.Power;
@ -22,7 +26,7 @@ namespace CC_Functions.W32.Test
_mainF = this;
_tmpWnd32Obj = Wnd32.FromForm(this);
#if DEBUG
tmpWnd32_obj.MakeOverlay();
_tmpWnd32Obj.Overlay = true;
#endif
set_up_box(power_mode_box, typeof(ShutdownMode));
set_up_box(power_reason_box, typeof(ShutdownReason));

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Test
using System;
using System.Windows.Forms;
namespace CC_Functions.W32.Test
{
internal static class Program
{

View File

@ -1,4 +1,8 @@
namespace CC_Functions.W32.DCDrawer
using System;
using System.Drawing;
using System.Windows.Forms;
namespace CC_Functions.W32.DCDrawer
{
public class DCBuffered : IDCDrawer
{

View File

@ -1,4 +1,6 @@
using CC_Functions.W32.Native;
using System;
using System.Drawing;
using CC_Functions.W32.Native;
namespace CC_Functions.W32.DCDrawer
{

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.DCDrawer
using System;
using System.Drawing;
namespace CC_Functions.W32.DCDrawer
{
public interface IDCDrawer : IDisposable
{

View File

@ -1,5 +1,10 @@
using CC_Functions.W32.DCDrawer;
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using CC_Functions.W32.DCDrawer;
using CC_Functions.W32.Native;
using Microsoft.Win32;
namespace CC_Functions.W32
{

View File

@ -1,3 +1,11 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace CC_Functions.W32.Forms
{
public class DataGridViewNumericUpDownCell : DataGridViewTextBoxCell

View File

@ -1,3 +1,9 @@
using System;
using System.ComponentModel;
using System.Globalization;
using System.Text;
using System.Windows.Forms;
namespace CC_Functions.W32.Forms
{
/// <summary>

View File

@ -1,3 +1,9 @@
using System;
using System.Drawing;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace CC_Functions.W32.Forms
{
/// <summary>

View File

@ -1,4 +1,9 @@
namespace CC_Functions.W32.Forms
using System;
using System.Linq.Expressions;
using System.Reflection;
using System.Windows.Forms;
namespace CC_Functions.W32.Forms
{
public delegate void SetPropertyDelegate<TCtl, TProp>(TCtl control, Expression<Func<TCtl, TProp>> propexpr,
TProp value) where TCtl : Control;

View File

@ -1,4 +1,9 @@
using Timer = System.Timers.Timer;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using Timer = System.Timers.Timer;
namespace CC_Functions.W32.Forms
{

View File

@ -1,4 +1,8 @@
namespace CC_Functions.W32.Forms
using System;
using System.Linq;
using System.Windows.Forms;
namespace CC_Functions.W32.Forms
{
internal partial class SelectBox<T> : Form
{

View File

@ -1,4 +1,8 @@
namespace CC_Functions.W32
using System;
using System.Diagnostics;
using System.Windows.Forms;
namespace CC_Functions.W32
{
public static class GenericExtensions
{

View File

@ -1,4 +1,9 @@
using CC_Functions.W32.Native;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using CC_Functions.W32.Native;
namespace CC_Functions.W32.Hooks
{

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Hooks
using System;
using System.Windows.Forms;
namespace CC_Functions.W32.Hooks
{
public sealed class KeyboardHookEventArgs : EventArgs
{

View File

@ -1,4 +1,9 @@
using CC_Functions.W32.Native;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.InteropServices;
using CC_Functions.W32.Native;
namespace CC_Functions.W32.Hooks
{

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Hooks
using System;
using System.Drawing;
namespace CC_Functions.W32.Hooks
{
public class MouseHookEventArgs : EventArgs
{

View File

@ -1,4 +1,5 @@
using CC_Functions.W32.Native;
using System.Windows.Forms;
using CC_Functions.W32.Native;
namespace CC_Functions.W32
{

View File

@ -1,4 +1,6 @@
using CC_Functions.W32.Native;
using System.Drawing;
using System.Windows.Forms;
using CC_Functions.W32.Native;
namespace CC_Functions.W32
{

View File

@ -1,4 +1,6 @@
namespace CC_Functions.W32.Native
using System.Runtime.InteropServices;
namespace CC_Functions.W32.Native
{
[StructLayout(LayoutKind.Sequential)]
public struct RECT

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Native
using System;
using System.Runtime.InteropServices;
namespace CC_Functions.W32.Native
{
internal static class advapi32
{

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Native
using System;
using System.Runtime.InteropServices;
namespace CC_Functions.W32.Native
{
internal static class gdi32
{

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Native
using System;
using System.Runtime.InteropServices;
namespace CC_Functions.W32.Native
{
internal static class kernel32
{

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Native
using System;
using System.Runtime.InteropServices;
namespace CC_Functions.W32.Native
{
internal static class ntdll
{

View File

@ -1,4 +1,7 @@
namespace CC_Functions.W32.Native
using System;
using System.Runtime.InteropServices;
namespace CC_Functions.W32.Native
{
internal static class shell32
{

View File

@ -1,4 +1,8 @@
namespace CC_Functions.W32.Native
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace CC_Functions.W32.Native
{
internal static class user32
{

View File

@ -1,4 +1,5 @@
using CC_Functions.W32.Native;
using System;
using CC_Functions.W32.Native;
using static CC_Functions.W32.Privileges;
namespace CC_Functions.W32

View File

@ -1,4 +1,8 @@
using CC_Functions.W32.Native;
using System;
using System.ComponentModel;
using System.Globalization;
using System.Runtime.InteropServices;
using CC_Functions.W32.Native;
namespace CC_Functions.W32
{

View File

@ -1,4 +1,7 @@
using CC_Functions.W32.DCDrawer;
using System;
using System.Drawing;
using System.Windows.Forms;
using CC_Functions.W32.DCDrawer;
using CC_Functions.W32.Native;
namespace CC_Functions.W32

View File

@ -1,4 +1,6 @@
namespace CC_Functions.W32
using System.Security.Principal;
namespace CC_Functions.W32
{
public static class MiscFunctions
{

View File

@ -1,4 +1,5 @@
using CC_Functions.W32.Native;
using System;
using CC_Functions.W32.Native;
namespace CC_Functions.W32
{

View File

@ -1,4 +1,13 @@
using CC_Functions.W32.Native;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using CC_Functions.W32.Native;
namespace CC_Functions.W32
{