Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit 6b3a084

Browse files
committed
Comment extravaganza
1 parent 9a99224 commit 6b3a084

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

86BoxManager/FolderSelectDialog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !NETCOREAPP
1+
#if !NETCOREAPP // Not required for .NET Core builds
22
using System;
33
using System.Reflection;
44
using System.Windows.Forms;

86BoxManager/dlgAddVM.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ private void txtName_TextChanged(object sender, EventArgs e)
7474
}
7575
}
7676

77+
// .NET Core implements the better Vista-style folder browse dialog in the stock FolderBrowserDialog
7778
#if NETCOREAPP
7879
private void btnBrowse_Click(object sender, EventArgs e)
7980
{
@@ -90,6 +91,7 @@ private void btnBrowse_Click(object sender, EventArgs e)
9091
txtName.Text = Path.GetFileName(dialog.SelectedPath);
9192
}
9293
}
94+
// A custom class is required for Vista-style folder dialogs under the original .NET Framework
9395
#else
9496
private void btnBrowse_Click(object sender, EventArgs e)
9597
{

86BoxManager/dlgSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ private void LoadSettings()
235235
}
236236
}
237237

238+
// .NET Core implements the better Vista-style folder browse dialog in the stock FolderBrowserDialog
238239
#if NETCOREAPP
239240
private void btnBrowse1_Click(object sender, EventArgs e)
240241
{
@@ -273,6 +274,7 @@ private void btnBrowse2_Click(object sender, EventArgs e)
273274
}
274275
}
275276
}
277+
// A custom class is required for Vista-style folder dialogs under the original .NET Framework
276278
#else
277279
private void btnBrowse1_Click(object sender, EventArgs e)
278280
{

86BoxManager/frmMain.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !NETCOREAPP
1+
#if !NETCOREAPP // COM references require .NET framework for now
22
using IWshRuntimeLibrary;
33
#endif
44
using Microsoft.Win32;
@@ -53,7 +53,7 @@ public frmMain()
5353
LoadVMs();
5454

5555
#if NETCOREAPP
56-
createADesktopShortcutToolStripMenuItem.Enabled = false;
56+
createADesktopShortcutToolStripMenuItem.Enabled = false; // Requires the original .NET framework
5757
#endif
5858
}
5959

@@ -1136,7 +1136,7 @@ private void VMOpenFolder()
11361136

11371137
private void createADesktopShortcutToolStripMenuItem_Click(object sender, EventArgs e)
11381138
{
1139-
#if !NETCOREAPP
1139+
#if !NETCOREAPP // Requires the original .NET Framework
11401140
VM vm = (VM)lstVMs.SelectedItems[0].Tag;
11411141
WshShell shell = new WshShell();
11421142
string shortcutAddress = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\" + vm.Name + ".lnk";

0 commit comments

Comments
 (0)