1
Fork 0

Added button for ejecting drive

This commit is contained in:
Jake Howard 2015-02-06 13:17:43 +00:00
parent a0335c823b
commit 6c89e150bd
2 changed files with 239 additions and 191 deletions

View file

@ -31,14 +31,6 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(mainWindow));
this.ribbonControl = new DevComponents.DotNetBar.RibbonControl();
this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar5 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItem6 = new DevComponents.DotNetBar.ButtonItem();
this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItem5 = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar7 = new DevComponents.DotNetBar.RibbonBar();
this.backupDeviceButton = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
this.viewAllRulesButton = new DevComponents.DotNetBar.ButtonItem();
@ -48,6 +40,14 @@
this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItem2 = new DevComponents.DotNetBar.ButtonItem();
this.addBackupRuleButton = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar5 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItem6 = new DevComponents.DotNetBar.ButtonItem();
this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItem5 = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar7 = new DevComponents.DotNetBar.RibbonBar();
this.backupDeviceButton = new DevComponents.DotNetBar.ButtonItem();
this.backupRestoreTab = new DevComponents.DotNetBar.RibbonTabItem();
this.deviceTab = new DevComponents.DotNetBar.RibbonTabItem();
this.settingsTab = new DevComponents.DotNetBar.RibbonTabItem();
@ -80,11 +80,12 @@
this.creationDateLabel = new System.Windows.Forms.Label();
this.backupDirectoryDisplay = new System.Windows.Forms.Label();
this.backupDirectoryLabel = new System.Windows.Forms.Label();
this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar();
this.ejectDriveButton = new DevComponents.DotNetBar.ButtonItem();
this.ribbonControl.SuspendLayout();
this.ribbonPanel2.SuspendLayout();
this.ribbonPanel4.SuspendLayout();
this.ribbonPanel3.SuspendLayout();
this.ribbonPanel2.SuspendLayout();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sideBar)).BeginInit();
this.sideBar.SuspendLayout();
this.tabControlPanel1.SuspendLayout();
@ -102,9 +103,9 @@
this.ribbonControl.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonControl.CanCustomize = false;
this.ribbonControl.CaptionVisible = true;
this.ribbonControl.Controls.Add(this.ribbonPanel4);
this.ribbonControl.Controls.Add(this.ribbonPanel3);
this.ribbonControl.Controls.Add(this.ribbonPanel2);
this.ribbonControl.Controls.Add(this.ribbonPanel4);
this.ribbonControl.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.backupRestoreTab,
@ -135,182 +136,6 @@
this.ribbonControl.TabIndex = 0;
this.ribbonControl.Text = "Saviour Backup System";
//
// ribbonPanel4
//
this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel4.Controls.Add(this.ribbonBar5);
this.ribbonPanel4.Controls.Add(this.ribbonBar4);
this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.ribbonPanel4.Location = new System.Drawing.Point(0, 53);
this.ribbonPanel4.Name = "ribbonPanel4";
this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
this.ribbonPanel4.Size = new System.Drawing.Size(992, 108);
//
//
//
this.ribbonPanel4.Style.Class = "";
this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel4.StyleMouseDown.Class = "";
this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel4.StyleMouseOver.Class = "";
this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel4.TabIndex = 4;
//
// ribbonBar5
//
this.ribbonBar5.AutoOverflowEnabled = true;
//
//
//
this.ribbonBar5.BackgroundMouseOverStyle.Class = "";
this.ribbonBar5.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar5.BackgroundStyle.Class = "";
this.ribbonBar5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonBar5.ContainerControlProcessDialogKey = true;
this.ribbonBar5.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBar5.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.buttonItem6});
this.ribbonBar5.Location = new System.Drawing.Point(103, 0);
this.ribbonBar5.Name = "ribbonBar5";
this.ribbonBar5.Size = new System.Drawing.Size(123, 105);
this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar5.TabIndex = 1;
this.ribbonBar5.Text = "About";
//
//
//
this.ribbonBar5.TitleStyle.Class = "";
this.ribbonBar5.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar5.TitleStyleMouseOver.Class = "";
this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
// buttonItem6
//
this.buttonItem6.Name = "buttonItem6";
this.buttonItem6.SubItemsExpandWidth = 14;
this.buttonItem6.Text = "About Saviour Backup";
//
// ribbonBar4
//
this.ribbonBar4.AutoOverflowEnabled = true;
//
//
//
this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar4.BackgroundStyle.Class = "";
this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonBar4.ContainerControlProcessDialogKey = true;
this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.buttonItem5});
this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
this.ribbonBar4.Name = "ribbonBar4";
this.ribbonBar4.Size = new System.Drawing.Size(100, 105);
this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar4.TabIndex = 0;
this.ribbonBar4.Text = "Preferences";
//
//
//
this.ribbonBar4.TitleStyle.Class = "";
this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar4.TitleStyleMouseOver.Class = "";
this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
// buttonItem5
//
this.buttonItem5.Name = "buttonItem5";
this.buttonItem5.SubItemsExpandWidth = 14;
this.buttonItem5.Text = "Edit Preferences";
this.buttonItem5.Click += new System.EventHandler(this.buttonItem5_Click);
//
// ribbonPanel3
//
this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel3.Controls.Add(this.ribbonBar7);
this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.ribbonPanel3.Location = new System.Drawing.Point(0, 53);
this.ribbonPanel3.Name = "ribbonPanel3";
this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
this.ribbonPanel3.Size = new System.Drawing.Size(992, 108);
//
//
//
this.ribbonPanel3.Style.Class = "";
this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel3.StyleMouseDown.Class = "";
this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel3.StyleMouseOver.Class = "";
this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel3.TabIndex = 5;
this.ribbonPanel3.Visible = false;
//
// ribbonBar7
//
this.ribbonBar7.AutoOverflowEnabled = true;
//
//
//
this.ribbonBar7.BackgroundMouseOverStyle.Class = "";
this.ribbonBar7.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar7.BackgroundStyle.Class = "";
this.ribbonBar7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonBar7.ContainerControlProcessDialogKey = true;
this.ribbonBar7.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBar7.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.backupDeviceButton});
this.ribbonBar7.Location = new System.Drawing.Point(3, 0);
this.ribbonBar7.Name = "ribbonBar7";
this.ribbonBar7.Size = new System.Drawing.Size(170, 105);
this.ribbonBar7.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar7.TabIndex = 0;
this.ribbonBar7.Text = "Backup / Restore";
//
//
//
this.ribbonBar7.TitleStyle.Class = "";
this.ribbonBar7.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar7.TitleStyleMouseOver.Class = "";
this.ribbonBar7.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
// backupDeviceButton
//
this.backupDeviceButton.Name = "backupDeviceButton";
this.backupDeviceButton.SubItemsExpandWidth = 14;
this.backupDeviceButton.Text = "Backup Device";
this.backupDeviceButton.Click += new System.EventHandler(this.backupDeviceButton_Click);
//
// ribbonPanel2
//
this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@ -485,6 +310,183 @@
this.addBackupRuleButton.Text = "Add Backup Rule";
this.addBackupRuleButton.Click += new System.EventHandler(this.addBackupRuleButton_Click);
//
// ribbonPanel4
//
this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel4.Controls.Add(this.ribbonBar5);
this.ribbonPanel4.Controls.Add(this.ribbonBar4);
this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.ribbonPanel4.Location = new System.Drawing.Point(0, 53);
this.ribbonPanel4.Name = "ribbonPanel4";
this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
this.ribbonPanel4.Size = new System.Drawing.Size(992, 108);
//
//
//
this.ribbonPanel4.Style.Class = "";
this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel4.StyleMouseDown.Class = "";
this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel4.StyleMouseOver.Class = "";
this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel4.TabIndex = 4;
this.ribbonPanel4.Visible = false;
//
// ribbonBar5
//
this.ribbonBar5.AutoOverflowEnabled = true;
//
//
//
this.ribbonBar5.BackgroundMouseOverStyle.Class = "";
this.ribbonBar5.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar5.BackgroundStyle.Class = "";
this.ribbonBar5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonBar5.ContainerControlProcessDialogKey = true;
this.ribbonBar5.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBar5.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.buttonItem6});
this.ribbonBar5.Location = new System.Drawing.Point(103, 0);
this.ribbonBar5.Name = "ribbonBar5";
this.ribbonBar5.Size = new System.Drawing.Size(123, 105);
this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar5.TabIndex = 1;
this.ribbonBar5.Text = "About";
//
//
//
this.ribbonBar5.TitleStyle.Class = "";
this.ribbonBar5.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar5.TitleStyleMouseOver.Class = "";
this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
// buttonItem6
//
this.buttonItem6.Name = "buttonItem6";
this.buttonItem6.SubItemsExpandWidth = 14;
this.buttonItem6.Text = "About Saviour Backup";
//
// ribbonBar4
//
this.ribbonBar4.AutoOverflowEnabled = true;
//
//
//
this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar4.BackgroundStyle.Class = "";
this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonBar4.ContainerControlProcessDialogKey = true;
this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.buttonItem5});
this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
this.ribbonBar4.Name = "ribbonBar4";
this.ribbonBar4.Size = new System.Drawing.Size(100, 105);
this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar4.TabIndex = 0;
this.ribbonBar4.Text = "Preferences";
//
//
//
this.ribbonBar4.TitleStyle.Class = "";
this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar4.TitleStyleMouseOver.Class = "";
this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
// buttonItem5
//
this.buttonItem5.Name = "buttonItem5";
this.buttonItem5.SubItemsExpandWidth = 14;
this.buttonItem5.Text = "Edit Preferences";
this.buttonItem5.Click += new System.EventHandler(this.buttonItem5_Click);
//
// ribbonPanel3
//
this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel3.Controls.Add(this.ribbonBar6);
this.ribbonPanel3.Controls.Add(this.ribbonBar7);
this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.ribbonPanel3.Location = new System.Drawing.Point(0, 53);
this.ribbonPanel3.Name = "ribbonPanel3";
this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
this.ribbonPanel3.Size = new System.Drawing.Size(992, 108);
//
//
//
this.ribbonPanel3.Style.Class = "";
this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel3.StyleMouseDown.Class = "";
this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonPanel3.StyleMouseOver.Class = "";
this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel3.TabIndex = 5;
//
// ribbonBar7
//
this.ribbonBar7.AutoOverflowEnabled = true;
//
//
//
this.ribbonBar7.BackgroundMouseOverStyle.Class = "";
this.ribbonBar7.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar7.BackgroundStyle.Class = "";
this.ribbonBar7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonBar7.ContainerControlProcessDialogKey = true;
this.ribbonBar7.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBar7.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.backupDeviceButton});
this.ribbonBar7.Location = new System.Drawing.Point(3, 0);
this.ribbonBar7.Name = "ribbonBar7";
this.ribbonBar7.Size = new System.Drawing.Size(170, 105);
this.ribbonBar7.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar7.TabIndex = 0;
this.ribbonBar7.Text = "Backup / Restore";
//
//
//
this.ribbonBar7.TitleStyle.Class = "";
this.ribbonBar7.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar7.TitleStyleMouseOver.Class = "";
this.ribbonBar7.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
// backupDeviceButton
//
this.backupDeviceButton.Name = "backupDeviceButton";
this.backupDeviceButton.SubItemsExpandWidth = 14;
this.backupDeviceButton.Text = "Backup Device";
this.backupDeviceButton.Click += new System.EventHandler(this.backupDeviceButton_Click);
//
// backupRestoreTab
//
this.backupRestoreTab.Name = "backupRestoreTab";
@ -493,6 +495,7 @@
//
// deviceTab
//
this.deviceTab.Checked = true;
this.deviceTab.ColorTable = DevComponents.DotNetBar.eRibbonTabColor.Green;
this.deviceTab.Name = "deviceTab";
this.deviceTab.Panel = this.ribbonPanel3;
@ -501,7 +504,6 @@
//
// settingsTab
//
this.settingsTab.Checked = true;
this.settingsTab.Name = "settingsTab";
this.settingsTab.Panel = this.ribbonPanel4;
this.settingsTab.Text = "Settings";
@ -897,6 +899,47 @@
this.backupDirectoryLabel.TabIndex = 5;
this.backupDirectoryLabel.Text = "Directory:";
//
// ribbonBar6
//
this.ribbonBar6.AutoOverflowEnabled = true;
//
//
//
this.ribbonBar6.BackgroundMouseOverStyle.Class = "";
this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar6.BackgroundStyle.Class = "";
this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonBar6.ContainerControlProcessDialogKey = true;
this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.ejectDriveButton});
this.ribbonBar6.Location = new System.Drawing.Point(173, 0);
this.ribbonBar6.Name = "ribbonBar6";
this.ribbonBar6.Size = new System.Drawing.Size(100, 105);
this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar6.TabIndex = 1;
this.ribbonBar6.Text = "Eject";
//
//
//
this.ribbonBar6.TitleStyle.Class = "";
this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.ribbonBar6.TitleStyleMouseOver.Class = "";
this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
// ejectDriveButton
//
this.ejectDriveButton.Name = "ejectDriveButton";
this.ejectDriveButton.SubItemsExpandWidth = 14;
this.ejectDriveButton.Text = "Eject Drive";
this.ejectDriveButton.Click += new System.EventHandler(this.ejectDriveButton_Click);
//
// mainWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -916,11 +959,9 @@
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.mainWindow_FormClosing);
this.ribbonControl.ResumeLayout(false);
this.ribbonControl.PerformLayout();
this.ribbonPanel2.ResumeLayout(false);
this.ribbonPanel4.ResumeLayout(false);
this.ribbonPanel3.ResumeLayout(false);
this.ribbonPanel2.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.sideBar)).EndInit();
this.sideBar.ResumeLayout(false);
this.tabControlPanel1.ResumeLayout(false);
@ -986,6 +1027,8 @@
private System.Windows.Forms.Label label3;
public System.Windows.Forms.ProgressBar backupProgress;
public DevComponents.DotNetBar.ButtonX connectedDrivesListRefresh;
private DevComponents.DotNetBar.RibbonBar ribbonBar6;
private DevComponents.DotNetBar.ButtonItem ejectDriveButton;
}
}

View file

@ -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);
}
}
}