private void administratorModeToolStripMenuItem_Click(object sender, EventArgs e)
{
//if the menu strip item for administrator mode is checked
if (administratorModeToolStripMenuItem.Checked == true)
{
//Set the admin mode flag to true
adminMode = true;
//Show the full scan button
btnFullScan.Visible = true;
btnFullScan.Enabled = true;
//Hide the partial scan button
btnPartialScan.Visible = false;
btnPartialScan.Enabled = false;
//change the mode label
lblMode.Text = "Full Scan Mode";
//give focus to the full scan button
btnFullScan.Focus();
}
else
{
//set the admin flag to false
adminMode = false;
//hide the full scan button
btnFullScan.Visible = false;
btnFullScan.Enabled = false;
//show the partial scan button
btnPartialScan.Visible = true;
btnPartialScan.Enabled = true;
//change the mode label
lblMode.Text = "Partial Scan Mode";
//give focus to the partial scan button
btnPartialScan.Focus();
}
}