示例#1
0
        private void cancelButton_Click(object sender, EventArgs e)
        {
            AutoValidate = AutoValidate.Disable;
            DataGridView dgv = audioPathDataGridView;

            try
            {
                DGVManipulation.CloseFormListNotEmpty(dgv);
                this.Parent.Controls.Remove(this);
            }
            catch (Exception ex)
            {
                this.Parent.Controls.Remove(this);
                MessageBox.Show(ex.Message);
            }
        }
        private void cancelButton_Click(object sender, EventArgs e)
        {
            DataGridView dgv = imgPathDataGridView;

            AutoValidate = AutoValidate.Disable;
            try
            {
                DGVManipulation.CloseFormListNotEmpty(dgv);
                this.Parent.Controls.Remove(this);
                ListController.recoverEditingProgram(LocRM.GetString("open", currentCulture));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                this.Parent.Controls.Remove(this);
            }
        }