Ejemplo n.º 1
0
        // Delete button
        private void button3_Click(object sender, EventArgs e)
        {
            List <FileInfo> fl = (List <FileInfo>)selected;

            // If not files were selected, then show user error
            if (!fl.Any())
            {
                String       caption = "Error";
                String       message = "No file was selected";
                DialogResult result  = MessageBox.Show(message, caption, MessageBoxButtons.OK);
            }
            else
            {
                // passed 'this' to Form4 constructor to access Main
                Form4 del = new ManageDevices.Form4(this);
                // Calls on method to show the Delete File form
                del.Show();
            }
        }
Ejemplo n.º 2
0
        // Delete button
        private void button3_Click(object sender, EventArgs e)
        {
            Form4 del = new ManageDevices.Form4();

            del.Show();
        }