Beispiel #1
0
        //To close/delete the note
        private void xToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var result = MessageBox.Show("Do you want to delete this note?", "Delete Note", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                Close();
                File.Delete(SharedIems.path + @"fileID" + Tag + ".dat");
                File.Delete(SharedIems.path + @"fileID" + Tag + ".txt");
                SharedIems.openForm--;

                SharedIems.ZeroForm();
            }
        }