private void Main_Load(object sender, EventArgs e) { //Initialize the GUI driveSelectionBox.Items.AddRange(allDrives); quickSearchCheckBox.Checked = true; //Load the signature library DriveScanner = new DriveScanner(); int loadResult = DriveScanner.LoadSignatureLibrary(Application.StartupPath + "\\signatures.xml"); if(loadResult != 0) { switch (loadResult) { case 1: MessageBox.Show("Signature library file not found. Application will now quit."); break; case 2: MessageBox.Show("Invalid signature library file detected. Application will now quit."); break; case 3: MessageBox.Show("Error while processing the signature library. Application will now quit."); break; } Application.Exit(); } }