Skip to content

Commit f20f38f

Browse files
committed
Clean Up
1 parent 9ed1995 commit f20f38f

File tree

6 files changed

+24
-25
lines changed

6 files changed

+24
-25
lines changed

SmartTaskbar/MenuStyle.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SmartTaskbar
66
{
77
//https://stackoverflow.com/questions/32786250/windows-10-styled-contextmenustrip
8-
class Win10ColorTable : ProfessionalColorTable
8+
internal class Win10ColorTable : ProfessionalColorTable
99
{
1010
public override Color MenuItemBorder => Color.WhiteSmoke;
1111

@@ -18,7 +18,7 @@ class Win10ColorTable : ProfessionalColorTable
1818
public override Color ImageMarginGradientEnd => Color.White;
1919
}
2020

21-
class Win10Renderer : ToolStripProfessionalRenderer
21+
internal class Win10Renderer : ToolStripProfessionalRenderer
2222
{
2323
public Win10Renderer() : base(new Win10ColorTable()) { }
2424

SmartTaskbar/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace SmartTaskbar
66
{
7-
static class Program
7+
internal static class Program
88
{
99
[STAThread]
10-
static void Main()
10+
private static void Main()
1111
{
1212
//Use a mutex to ensure single instance
1313
using (new Mutex(true, "{959d3545-aa5c-42a8-a327-6e2c079daa94}", out bool createNew))

SmartTaskbar/ResourceCulture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace SmartTaskbar
77
{
8-
class ResourceCulture
8+
internal class ResourceCulture
99
{
1010
private readonly ResourceManager resourceManager = new ResourceManager("SmartTaskbar.Languages.Resource", Assembly.GetExecutingAssembly());
1111

SmartTaskbar/Switcher/NotifierLauncher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace SmartTaskbar
88
{
9-
class NotifierLauncher
9+
internal class NotifierLauncher
1010
{
1111
private readonly Process notifier = new Process();
1212
/// <summary>

SmartTaskbar/Switcher/SafeNativeMethods.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace SmartTaskbar
77
{
88
[SuppressUnmanagedCodeSecurity]
9-
static class SafeNativeMethods
9+
internal static class SafeNativeMethods
1010
{
1111

1212
public const int MSG_MAX = 0x501;
@@ -159,26 +159,26 @@ public static void AddProcess(IntPtr handle)
159159
[StructLayout(LayoutKind.Sequential)]
160160
private struct JOBOBJECT_BASIC_LIMIT_INFORMATION
161161
{
162-
public Int64 PerProcessUserTimeLimit;
163-
public Int64 PerJobUserTimeLimit;
164-
public UInt32 LimitFlags;
162+
public long PerProcessUserTimeLimit;
163+
public long PerJobUserTimeLimit;
164+
public uint LimitFlags;
165165
public UIntPtr MinimumWorkingSetSize;
166166
public UIntPtr MaximumWorkingSetSize;
167-
public UInt32 ActiveProcessLimit;
168-
public Int64 Affinity;
169-
public UInt32 PriorityClass;
170-
public UInt32 SchedulingClass;
167+
public uint ActiveProcessLimit;
168+
public long Affinity;
169+
public uint PriorityClass;
170+
public uint SchedulingClass;
171171
}
172172

173173
[StructLayout(LayoutKind.Sequential)]
174174
private struct IO_COUNTERS
175175
{
176-
public UInt64 ReadOperationCount;
177-
public UInt64 WriteOperationCount;
178-
public UInt64 OtherOperationCount;
179-
public UInt64 ReadTransferCount;
180-
public UInt64 WriteTransferCount;
181-
public UInt64 OtherTransferCount;
176+
public ulong ReadOperationCount;
177+
public ulong WriteOperationCount;
178+
public ulong OtherOperationCount;
179+
public ulong ReadTransferCount;
180+
public ulong WriteTransferCount;
181+
public ulong OtherTransferCount;
182182
}
183183

184184
[StructLayout(LayoutKind.Sequential)]

SmartTaskbar/SystemTray.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,10 @@ public SystemTray()
140140

141141
animation.Checked = GetTaskbarAnimation();
142142

143-
if (smallIcon.Enabled)
144-
{
145-
SetIconSize(Settings.Default.IconSize);
146-
smallIcon.Checked = GetIconSize() == SmallIcon;
147-
}
143+
if (!smallIcon.Enabled) return;
144+
145+
SetIconSize(Settings.Default.IconSize);
146+
smallIcon.Checked = GetIconSize() == SmallIcon;
148147
};
149148

150149
notifyIcon.MouseDoubleClick += (s, e) =>

0 commit comments

Comments
 (0)