45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace 報到系統客戶端
|
|
{
|
|
public partial class CheckoutOnlyConfirmForm : Form
|
|
{
|
|
public string 姓名 { get { return lbName.Text; } set { lbName.Text = value; } }
|
|
public string 手機號 { get { return lbMobile.Text; } set { lbMobile.Text = value; } }
|
|
|
|
public CheckoutOnlyConfirmForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void CheckoutOnlyConfirmForm_Shown(object sender, EventArgs e)
|
|
{
|
|
Services.NotificationSoundService.Ding();
|
|
}
|
|
|
|
private void CheckoutOnlyConfirmForm_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
if (e.KeyCode == Keys.Y)
|
|
{
|
|
DialogResult = DialogResult.Yes;
|
|
e.SuppressKeyPress = true;
|
|
return;
|
|
}
|
|
if (e.KeyCode == Keys.N)
|
|
{
|
|
DialogResult = DialogResult.No;
|
|
e.SuppressKeyPress = true;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|