Files
2024-10-07 16:17:27 +08:00

37 lines
702 B
C#

using System;
using System.ComponentModel;
using System.Windows.Forms;
using PDFPatcher.Common;
namespace PDFPatcher.Functions
{
[ToolboxItem(false)]
public partial class PatcherOptionForm : Form, IResettableControl
{
public PatcherOptionForm() {
InitializeComponent();
this.OnFirstLoad(OnLoad);
}
void OnLoad() {
this.SetIcon(Properties.Resources.PdfOptions);
_OptionsBox.Options = AppContext.Patcher;
_OptionsBox.ForEditor = false;
_OptionsBox.OnLoad();
}
public void Reset() {
Reload();
}
public void Reload() {
_OptionsBox.Reload();
}
protected override void OnClosing(CancelEventArgs e) {
base.OnClosing(e);
_OptionsBox.Apply();
}
}
}