mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 13:42:28 +08:00
f88a458efc
+增加展开折叠选中书签的命令 +增加笔记本键盘加减号增减书签页码的功能
36 lines
835 B
C#
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();
|
|
}
|
|
}
|
|
}
|