private void BtnRead_Click(object sender, EventArgs e)
        {
            try
            {
                Cursor = Cursors.WaitCursor;
                Core.RefreshConfig();
                mLocalCopy     = Core.Configuration.ToList();
                DGV.DataSource = mLocalCopy;
                RefreshEnabledButtons();
                Cursor = DefaultCursor;

                ActionResult(String.Format(Strings.BoxReadConfigSuccess, mLocalCopy.Count));
            }
            catch (Exception)
            {
                Cursor = DefaultCursor;
                ActionResult(Strings.BoxReadConfigError);
            }
        }
Exemple #2
0
        void OnMachineStatus()
        {
            if (Core.MachineStatus == GrblCore.MacStatus.Idle && FirstIdle && Core.Configuration.Count == 0)
            {
                try
                {
                    Core.RefreshConfig();
                    FirstIdle = false;
                }
                catch { }
            }


            TimerUpdate();
        }