convert VB to C#

This commit is contained in:
2020-09-24 11:21:53 +02:00
parent 64277916cd
commit fecbeb4659
320 changed files with 17755 additions and 10320 deletions

View File

@@ -0,0 +1,21 @@
using global::System.Drawing;
using global::Pilz.Win32.Native;
namespace Pilz.Win32.Mapped
{
public class NativeFileInfo
{
public Icon Icon { get; private set; }
public int SystemIconIndex { get; private set; }
public string Displayname { get; private set; }
public string Typename { get; private set; }
public NativeFileInfo(SHFILEINFO info)
{
Icon = Icon.FromHandle(info.hIcon);
SystemIconIndex = (int)info.iIcon;
Displayname = info.szDisplayName;
Typename = info.szTypeName;
}
}
}

View File

@@ -1,22 +0,0 @@
Imports System.Drawing
Imports Pilz.Win32.Native
Namespace Mapped
Public Class NativeFileInfo
Public ReadOnly Property Icon As Icon
Public ReadOnly Property SystemIconIndex As Integer
Public ReadOnly Property Displayname As String
Public ReadOnly Property Typename As String
Public Sub New(info As SHFILEINFO)
Icon = Icon.FromHandle(info.hIcon)
SystemIconIndex = info.iIcon
Displayname = info.szDisplayName
Typename = info.szTypeName
End Sub
End Class
End Namespace