Files
PDFPatcher/App/Functions/Editor/NewCoordinateEntryForm.cs
T
2022-04-21 21:43:45 +08:00

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();
}
}
}