Files
PDFPatcher/App/Functions/Editor/NewCoordinateEntryForm.cs
WMJ f88a458efc +为书签编辑器的子菜单添加快捷方式
+增加展开折叠选中书签的命令
+增加笔记本键盘加减号增减书签页码的功能
2024-06-12 16:16:01 +08:00

36 lines
835 B
C#

using System;
using System.Windows.Forms;
using PDFPatcher.Common;
namespace PDFPatcher.Functions
{
sealed partial class NewCoordinateEntryForm : Form
{
public string CoordinateName => _CoordinateBox.Text;
public float AdjustmentValue => (float)_AdjustmentAmountBox.Value;
public bool IsAbsolute => _AbsoluteBox.Checked;
public bool IsProportional => _ProportionBox.Checked;
public NewCoordinateEntryForm() {
InitializeComponent();
_CoordinateBox.SelectedIndex = 0;
this.OnFirstLoad(OnLoad);
}
void OnLoad() {
_AdjustmentAmountBox.Select();
_AdjustmentAmountBox.Focus();
}
void _OkButton_Click(object sender, EventArgs e) {
DialogResult = DialogResult.OK;
Close();
}
void _CancelButton_Click(object sender, EventArgs e) {
DialogResult = DialogResult.Cancel;
Close();
}
}
}