9,13 → 9,13 |
|
namespace SWAT_Office_App |
{ |
public partial class Menu_Main : Form |
public partial class Menu_Main_Form : Form |
{ |
public Menu_Main() |
public Menu_Main_Form() |
{ |
DebugText.startNewSession(); |
Debug.startNewSession(); |
Settings_Form.ImportSettings(); |
StatLogging.ImportSettings(); |
Stat_Logging.ImportSettings(); |
InitializeComponent(); |
this.KeyPress += new KeyPressEventHandler(Menu_Main_KeyPress); |
this.FormClosing += new FormClosingEventHandler(Menu_Main_FormClosing); |
23,7 → 23,7 |
|
void Menu_Main_FormClosing(object sender, FormClosingEventArgs e) |
{ |
StatLogging.ExportSettings(); |
Stat_Logging.ExportSettings(); |
} |
void Menu_Main_KeyPress(object sender, KeyPressEventArgs e) |
{ |
31,7 → 31,7 |
switch (e.KeyChar) |
{ |
case '1': // Manage User Accounts and Shares |
ManageUserAccounts_Form user_Mgmt = new ManageUserAccounts_Form(); |
Manage_User_Accounts_Form user_Mgmt = new Manage_User_Accounts_Form(); |
user_Mgmt.ShowDialog(); |
break; |
case '2': // DriveLogger |
38,7 → 38,7 |
// Check to make sure that an instance of DriveLogger isnt already running |
if (!DriveLogger_Form.instanceAlreadyRunning) |
{ |
DebugText.appendText("Starting instance of DriveLogger"); |
Debug.appendText("Starting instance of DriveLogger"); |
DriveLogger_Form driveForm = new DriveLogger_Form(); |
driveForm.Show(); |
} |
51,7 → 51,7 |
// Check to make sure that another imaging thread isnt running |
if (!Reimage_USB_Drives.threadsRunning) |
{ |
DebugText.appendText("Starting reimaging of USB drives"); |
Debug.appendText("Starting reimaging of USB drives"); |
Reimage_USB_Drives.reimageUSBDrives(); |
} |
else |
59,11 → 59,11 |
"Please wait for transfer to finish before starting another"); |
break; |
case '4': // Program Settings |
SettingsVerify_Form settingsForm = new SettingsVerify_Form(); |
Settings_Verify_Form settingsForm = new Settings_Verify_Form(); |
settingsForm.ShowDialog(); |
break; |
case '?': // About |
AboutBox aboutForm = new AboutBox(); |
About_Box_Form aboutForm = new About_Box_Form(); |
aboutForm.ShowDialog(); |
break; |
} |
71,7 → 71,7 |
private void btn_Main_UserMgmt_Click(object sender, EventArgs e) |
{ |
// Manage User Accounts and Shares |
ManageUserAccounts_Form userMgmtForm = new ManageUserAccounts_Form(); |
Manage_User_Accounts_Form userMgmtForm = new Manage_User_Accounts_Form(); |
userMgmtForm.ShowDialog(); |
} |
private void btn_DriveLogger_Click(object sender, EventArgs e) |
79,7 → 79,7 |
// DriveLogger |
if (!DriveLogger_Form.instanceAlreadyRunning) |
{ |
DebugText.appendText("Starting instance of DriveLogger"); |
Debug.appendText("Starting instance of DriveLogger"); |
DriveLogger_Form driveForm = new DriveLogger_Form(); |
driveForm.Show(); |
} |
91,7 → 91,7 |
// Reimage USB Drives |
if (!Reimage_USB_Drives.threadsRunning) |
{ |
DebugText.appendText("Starting reimaging of USB drives"); |
Debug.appendText("Starting reimaging of USB drives"); |
Reimage_USB_Drives.reimageUSBDrives(); |
} |
else |
101,7 → 101,7 |
private void btn_Main_Settings_Click(object sender, EventArgs e) |
{ |
// Program Settings |
SettingsVerify_Form settingsForm = new SettingsVerify_Form(); |
Settings_Verify_Form settingsForm = new Settings_Verify_Form(); |
settingsForm.ShowDialog(); |
} |
} |