Commit 6c89e150 authored by Jake Howard's avatar Jake Howard
Browse files

Added button for ejecting drive

parent a0335c82
......@@ -273,5 +273,10 @@ namespace Saviour_Backup_System
{
MessageBox.Show("Unavailable.");
}
private void ejectDriveButton_Click(object sender, EventArgs e) {
RemoveDriveTools.RemoveDrive(driveLetterDisplay.Text.Substring(0, 2));
MessageBox.Show("Drive has been ejected", "Drive Ejected", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment