Esempio n. 1
0
        private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {//to lower all small
            string delete = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().ToLower();

            if (delete == "delete")
            {
                string path = dataGridView1.Rows[e.RowIndex].Cells["FullName"].Value.ToString();
                Directory.Delete(path);

                /* DirectoryInfo di = new DirectoryInfo(path);
                 * di.Delete();*/
                MessageBox.Show("Deleted successfully");
            }
            else
            {
                IOTestcs io = new IOTestcs();
                io.Show();
            }
        }
Esempio n. 2
0
        private void IOTestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IOTestcs it = new IOTestcs();

            it.Show();
        }