chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user