Esempio n. 1
0
        private void Delete(object sender, EventArgs e)
        {
            string message = $"Are you sure that you want to delete the CodeFile \"{codeFile.HardName}\"?";
            string caption = "Remove?";
            var    result  = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                codeFile.Delete();
            }
        }