Skip to content

Commit

Permalink
Clean Up
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliviaophia committed Aug 25, 2018
1 parent 9ed1995 commit f20f38f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 25 deletions.
4 changes: 2 additions & 2 deletions SmartTaskbar/MenuStyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SmartTaskbar
{
//https://stackoverflow.com/questions/32786250/windows-10-styled-contextmenustrip
class Win10ColorTable : ProfessionalColorTable
internal class Win10ColorTable : ProfessionalColorTable
{
public override Color MenuItemBorder => Color.WhiteSmoke;

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

class Win10Renderer : ToolStripProfessionalRenderer
internal class Win10Renderer : ToolStripProfessionalRenderer
{
public Win10Renderer() : base(new Win10ColorTable()) { }

Expand Down
4 changes: 2 additions & 2 deletions SmartTaskbar/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace SmartTaskbar
{
static class Program
internal static class Program
{
[STAThread]
static void Main()
private static void Main()
{
//Use a mutex to ensure single instance
using (new Mutex(true, "{959d3545-aa5c-42a8-a327-6e2c079daa94}", out bool createNew))
Expand Down
2 changes: 1 addition & 1 deletion SmartTaskbar/ResourceCulture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace SmartTaskbar
{
class ResourceCulture
internal class ResourceCulture
{
private readonly ResourceManager resourceManager = new ResourceManager("SmartTaskbar.Languages.Resource", Assembly.GetExecutingAssembly());

Expand Down
2 changes: 1 addition & 1 deletion SmartTaskbar/Switcher/NotifierLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace SmartTaskbar
{
class NotifierLauncher
internal class NotifierLauncher
{
private readonly Process notifier = new Process();
/// <summary>
Expand Down
28 changes: 14 additions & 14 deletions SmartTaskbar/Switcher/SafeNativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace SmartTaskbar
{
[SuppressUnmanagedCodeSecurity]
static class SafeNativeMethods
internal static class SafeNativeMethods
{

public const int MSG_MAX = 0x501;
Expand Down Expand Up @@ -159,26 +159,26 @@ public static void AddProcess(IntPtr handle)
[StructLayout(LayoutKind.Sequential)]
private struct JOBOBJECT_BASIC_LIMIT_INFORMATION
{
public Int64 PerProcessUserTimeLimit;
public Int64 PerJobUserTimeLimit;
public UInt32 LimitFlags;
public long PerProcessUserTimeLimit;
public long PerJobUserTimeLimit;
public uint LimitFlags;
public UIntPtr MinimumWorkingSetSize;
public UIntPtr MaximumWorkingSetSize;
public UInt32 ActiveProcessLimit;
public Int64 Affinity;
public UInt32 PriorityClass;
public UInt32 SchedulingClass;
public uint ActiveProcessLimit;
public long Affinity;
public uint PriorityClass;
public uint SchedulingClass;
}

[StructLayout(LayoutKind.Sequential)]
private struct IO_COUNTERS
{
public UInt64 ReadOperationCount;
public UInt64 WriteOperationCount;
public UInt64 OtherOperationCount;
public UInt64 ReadTransferCount;
public UInt64 WriteTransferCount;
public UInt64 OtherTransferCount;
public ulong ReadOperationCount;
public ulong WriteOperationCount;
public ulong OtherOperationCount;
public ulong ReadTransferCount;
public ulong WriteTransferCount;
public ulong OtherTransferCount;
}

[StructLayout(LayoutKind.Sequential)]
Expand Down
9 changes: 4 additions & 5 deletions SmartTaskbar/SystemTray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,10 @@ public SystemTray()
animation.Checked = GetTaskbarAnimation();
if (smallIcon.Enabled)
{
SetIconSize(Settings.Default.IconSize);
smallIcon.Checked = GetIconSize() == SmallIcon;
}
if (!smallIcon.Enabled) return;
SetIconSize(Settings.Default.IconSize);
smallIcon.Checked = GetIconSize() == SmallIcon;
};

notifyIcon.MouseDoubleClick += (s, e) =>
Expand Down

0 comments on commit f20f38f

Please sign in to comment.