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 WindowsFormsApplication4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnExit_Click(object sender, EventArgs e)
{
DialogResult result = MessageBox.Show("确定要退出吗?","退出询问",MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if(result == DialogResult.Yes){
this.Close();
}
}
}
}