Ejemplo n.º 1
0
        private void LightIndihiangForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dlg = MessageBox.Show("Are you sure to exit?",
                                               "Confirmation",
                                               MessageBoxButtons.YesNo,
                                               MessageBoxIcon.Question);

            if (dlg == DialogResult.Yes)
            {
                _parser.CancelAnalyze();
            }
            else
            {
                e.Cancel = true;
            }
        }