예제 #1
0
        private void clearFilterListBtn_Click(object sender, EventArgs e)
        {
            CancelDialog cancelDialog = new CancelDialog();

            cancelDialog.EditLblText = "clear the filter list?";
            if (Filters.Count > 0 && cancelDialog.ShowDialog() == DialogResult.OK)
            {
                Filters = new List <Filter>();
                filterListBox.Items.Clear();
            }
        }
        private void cancelBtn_Click(object sender, EventArgs e)
        {
            CancelDialog dialog = new CancelDialog();

            if (cancelBtn.Text == "Close")
            {
                Close();
            }
            else
            {
                dialog.ShowDialog();
                if (dialog.DialogResult == DialogResult.OK)
                {
                    csvParser.KillFlag = true;
                    Close();
                }
            }
        }