private void btnResult_Click(object sender, EventArgs e) { OxoCore.Session.output = txtOutput.Text; using (frmResult result = new frmResult(OxoCore.ListUndetectedIntervals())) { RangeOptions(result); } }
private bool SetOxoCoreSessionFromGUI() { if (ReadGui(out Session session) && CheckStartAndEnd(session)) { progressBar1.Value = 0; // this is a temporary session, so fixed ranges are not changed in GUI session.SetFixedRangesWithoutCollisionWithVariableRange(FixedRanges); OxoCore.SetSession(session); return(true); } return(false); }
private void DoWork() { try { autoProcessToolStripMenuItem.Enabled = false; OxoCore.DoWork(); if (OxoCore.Error != "") { MessageBox.Show(this, OxoCore.Error); } } catch (Exception ex) { MessageBox.Show(this, ex.Message); Stop(); } }
private void StartAutoProcessForm() { if (OxoCore.IsBusy() && MessageBox.Show(this, "Busy", "Program working in the background, force stop?", MessageBoxButtons.YesNo) == DialogResult.Yes) { OxoCore.StopWork(); } if (!OxoCore.IsBusy()) { using (frmAuto frmAuto = new frmAuto(OxoCore.Session, this)) { frmAuto.ShowDialog(); } } }
private void LoadSession(Session session) { if (session == null) { session = new Session(); } ExtractFixedRanges(session); FillTextBoxes(session); SetRangeMode((Mode)((int)session.mode & 0xFF00)); SetFillMode((Mode)((int)session.mode & 0xFF)); ForceUpdateStatusStrip(); OxoCore.SetSession(session); UpdateByteMap(); }
private void Stop() { StopBecomesGo(); autoProcessToolStripMenuItem.Enabled = true; OxoCore.StopWork(); }