private void main_FormClosing(object sender, FormClosingEventArgs e)
        {
             if (e.CloseReason == CloseReason.UserClosing)//当用户点击窗体右上角X按钮或(Alt + F4)时 发生

          
            {
                if (  MessageBox.Show("确定退出?", "退出程序", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
                {
                    //count += 1;
                    //    e.Cancel = true;

                    Application.Exit();
                   
                   
                }
            }
        }