Files
ArchiSteamFarm/ConfigGenerator/ConfigPage.cs

37 lines
725 B
C#
Raw Normal View History

2016-03-20 06:41:12 +01:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ConfigGenerator {
internal class ConfigPage : TabPage {
2016-03-20 08:29:27 +01:00
internal readonly ASFConfig ASFConfig;
2016-03-20 06:41:12 +01:00
private EnhancedPropertyGrid EnhancedPropertyGrid;
internal ConfigPage(ASFConfig config) : base() {
if (config == null) {
return;
}
2016-03-20 08:29:27 +01:00
ASFConfig = config;
RefreshText();
2016-03-20 06:41:12 +01:00
EnhancedPropertyGrid = new EnhancedPropertyGrid(config);
Controls.Add(EnhancedPropertyGrid);
}
2016-03-20 08:29:27 +01:00
internal void RefreshText() {
Text = Path.GetFileNameWithoutExtension(ASFConfig.FilePath);
2016-03-20 06:41:12 +01:00
}
private void InitializeComponent() {
SuspendLayout();
ResumeLayout(false);
}
}
}