mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 21:52:34 +08:00
7d279bc324
!重构代码
29 lines
691 B
C#
29 lines
691 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
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;
|
|
}
|
|
|
|
void _OkButton_Click(object sender, EventArgs e) {
|
|
DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
|
|
void _CancelButton_Click(object sender, EventArgs e) {
|
|
DialogResult = DialogResult.Cancel;
|
|
Close();
|
|
}
|
|
}
|
|
}
|