chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
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;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace 報到系統客戶端
|
||||
{
|
||||
public partial class AgreementConfirmForm : Form
|
||||
{
|
||||
public string 同意事項 { get { return lbAgreedTerms.Text; } set { lbAgreedTerms.Text = value; } }
|
||||
|
||||
public AgreementConfirmForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void AgreementConfirmForm_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;
|
||||
}
|
||||
}
|
||||
|
||||
private void AgreementConfirmForm_Shown(object sender, EventArgs e)
|
||||
{
|
||||
Services.NotificationSoundService.Ding();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user