mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-17 06:50:29 +00:00
26 lines
610 B
C#
26 lines
610 B
C#
using System.Windows.Forms;
|
|
|
|
namespace ConfigGenerator {
|
|
internal sealed class EnhancedPropertyGrid : PropertyGrid {
|
|
private ASFConfig ASFConfig;
|
|
internal EnhancedPropertyGrid(ASFConfig config) : base() {
|
|
if (config == null) {
|
|
return;
|
|
}
|
|
|
|
ASFConfig = config;
|
|
|
|
SelectedObject = config;
|
|
Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
|
|
Dock = DockStyle.Fill;
|
|
HelpVisible = false;
|
|
ToolbarVisible = false;
|
|
}
|
|
|
|
protected override void OnPropertyValueChanged(PropertyValueChangedEventArgs e) {
|
|
base.OnPropertyValueChanged(e);
|
|
ASFConfig.Save();
|
|
}
|
|
}
|
|
}
|