//======================================================================== private void btnRun_Click(object sender, EventArgs e) { int queue = -1; if (optUserSelect.Checked) { queue = int.Parse(txtQueue.Text); } if (chkQueueAlways.Checked == true) { Config.SetValue("Default_Queue", txtQueue.Text, true); } SymSession.FMRunNfo fmrn; btnRun.Enabled = false; try { fmrn = session.FMRun(repTitle, (SymSession.FMType)cmbFmFile.SelectedIndex, StatusUpdate, queue); } catch (Exception ex) { MessageBox.Show("Error Running FM\nError: \"" + ex.Message + '"', "PwrIDE - Run FM", MessageBoxButtons.OK, MessageBoxIcon.Error); Close(); return; } sequence = fmrn.sequence; fmTitle = fmrn.title; running = true; mod = 0; checker.RunWorkerAsync(); }