private void addToQueueButton_Click(object sender, EventArgs e) { bool result = queueManager.CheckJobs(this); if (!result) { if (!String.IsNullOrEmpty(queueManager.errorList)) { MessageBox.Show(queueManager.errorList, Properties.Resources.ErrorLabel, MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { queueManager.AddToQueue(this); if (MainForm.optionsData.showQueueWhenAdding) { ShowQueueForm(); } } }