mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-17 04:41:14 +08:00
37 lines
702 B
C#
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();
|
|
}
|
|
}
|
|
}
|