Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 14 → Rev 15

/SWAT Office App/trunk/SWAT Office App/Main_Menu_Form.cs
15,16 → 15,45
{
InitializeComponent();
Settings_Form.ImportSettings();
this.KeyPress += new KeyPressEventHandler(Menu1_Main_KeyPress);
}
 
void Menu1_Main_KeyPress(object sender, KeyPressEventArgs e)
{
switch (e.KeyChar)
{
case '1':
if (Reimage_USB_Drives.threadsRunning == false)
Reimage_USB_Drives.reimageUSBDrives();
else
{
MessageBox.Show("Another file copy operation is currently in progress.\n" +
"Please wait for transfer to finish before starting another");
}
break;
case '2':
ManageUserAccounts_Form user_Mgmt = new ManageUserAccounts_Form();
user_Mgmt.ShowDialog();
break;
case '3':
SettingsVerify_Form settingsForm = new SettingsVerify_Form();
settingsForm.ShowDialog();
break;
case '?':
AboutBox aboutForm = new AboutBox();
aboutForm.ShowDialog();
break;
}
}
private void btn_Main_UserMgmt_Click(object sender, EventArgs e)
{
ManageUserAccounts_Form user_Mgmt = new ManageUserAccounts_Form();
user_Mgmt.ShowDialog();
ManageUserAccounts_Form userMgmtForm = new ManageUserAccounts_Form();
userMgmtForm.ShowDialog();
}
private void btn_Main_Settings_Click(object sender, EventArgs e)
{
SettingsVerify_Form newForm = new SettingsVerify_Form();
newForm.ShowDialog();
SettingsVerify_Form settingsForm = new SettingsVerify_Form();
settingsForm.ShowDialog();
}
private void btn_Reimage_USB_Drives_Click(object sender, EventArgs e)
{