44 lines
1.1 KiB
C#
44 lines
1.1 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;
|
|
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();
|
|
}
|
|
}
|
|
}
|