예제 #1
0
        // Add button
        private void button2_Click(object sender, EventArgs e)
        {
            List <FileInfo> fl = (List <FileInfo>)selected;

            // If no flash drive then error message is given so drive can be inserted first before adding
            if (!isFlashDriveInserted())
            {
                String       caption = "Error";
                String       message = "Error! No Flash Drive found. \nFlash Drive required before trying to add files to it.";
                DialogResult result  = MessageBox.Show(message, caption, MessageBoxButtons.OK);
            }
            // Else calls on form2 to add Files
            else
            {
                Form2 frm = new ManageDevices.Form2(this);
                frm.ShowDialog();
            }
        }
예제 #2
0
        // Add button
        private void button2_Click(object sender, EventArgs e)
        {
            Form2 frm = new ManageDevices.Form2();

            frm.Show();
        }