Exemplo n.º 1
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);
 }
Exemplo n.º 2
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();
        }