run visual studio code Cleanup

This commit is contained in:
Markus Hofknecht 2019-11-18 20:11:55 +01:00
parent 0e38067e79
commit 4a294c7d76
13 changed files with 46 additions and 69 deletions

View file

@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SystemTrayMenu.Controls

View file

@ -1,17 +1,4 @@
using Clearcove.Logging;
using IWshRuntimeLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using SystemTrayMenu.Helper;
using TAFactory.IconPack;
using System.Collections.Generic;
namespace SystemTrayMenu.Controls
{

View file

@ -488,7 +488,7 @@ namespace SystemTrayMenu.Controls
var graphics = Graphics.FromImage(target);
graphics.DrawIcon(originalIcon, 0, 0);
graphics.DrawIcon(overlay, 0, 0);
target.MakeTransparent(target.GetPixel(1,1));
target.MakeTransparent(target.GetPixel(1, 1));
return Icon.FromHandle(target.GetHicon());
}

View file

@ -1,5 +1,4 @@
using Microsoft.Win32;
using System;
namespace SystemTrayMenu.Helper
{

View file

@ -1,5 +1,4 @@
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms;
namespace SystemTrayMenu.Helper
{

View file

@ -19,7 +19,7 @@ namespace SystemTrayMenu
public const int MenuRowsHeight = 18;
public const int LengthMax = 37;
public const int ButtonTextPaddingLeft = 18;
public const int ButtonTextPaddingRight= 12;
public const int ButtonTextPaddingRight = 12;
public const int Scrollspeed = 4;

View file

@ -1,5 +1,4 @@
using Clearcove.Logging;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;

View file

@ -487,7 +487,7 @@ namespace SystemTrayMenu
try
{
files = Directory.GetFiles(path). Where(p =>
files = Directory.GetFiles(path).Where(p =>
!Path.GetFileName(p).Equals("desktop.ini", StringComparison.OrdinalIgnoreCase) && // Windows folder settings, e.g. Win10 "desktop.ini", Win2003 "Desktop.ini"
!Path.GetFileName(p).Equals("thumbs.db", StringComparison.OrdinalIgnoreCase) // Windows thumbnail cache
).ToArray();
@ -1085,7 +1085,7 @@ namespace SystemTrayMenu
{
dgv.FirstDisplayedScrollingRowIndex = row.Index;
}
else if(row.Index >=
else if (row.Index >=
dgv.FirstDisplayedScrollingRowIndex +
dgv.DisplayedRowCount(false))
{