示例#1
0
 private void btnResult_Click(object sender, EventArgs e)
 {
     OxoCore.Session.output = txtOutput.Text;
     using (frmResult result = new frmResult(OxoCore.ListUndetectedIntervals()))
     {
         RangeOptions(result);
     }
 }
示例#2
0
 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);
 }
示例#3
0
 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(); }
 }
示例#4
0
        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();
                }
            }
        }
示例#5
0
        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();
        }
示例#6
0
 private void Stop()
 {
     StopBecomesGo();
     autoProcessToolStripMenuItem.Enabled = true;
     OxoCore.StopWork();
 }