mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Work on extra GUI app
This commit is contained in:
20
ConfigGenerator/EnhancedPropertyGrid.cs
Normal file
20
ConfigGenerator/EnhancedPropertyGrid.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ConfigGenerator {
|
||||
internal sealed class EnhancedPropertyGrid : PropertyGrid {
|
||||
private GlobalConfig GlobalConfig;
|
||||
internal EnhancedPropertyGrid(GlobalConfig globalConfig) : base() {
|
||||
if (globalConfig == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
GlobalConfig = globalConfig;
|
||||
|
||||
SelectedObject = globalConfig;
|
||||
Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
|
||||
Dock = DockStyle.Fill;
|
||||
HelpVisible = false;
|
||||
ToolbarVisible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user