protected virtual void updateDisplay(string value) { LCD_Manager lm = _parent.getLCD(); StringBuilder sb = new StringBuilder(); sb.Append(_parent._m_Program_Memory.toCounterString()); string tmp = toString(); int ln = tmp.Length - LCD_Manager.SCREEN_COLS + 7; if (ln <= 0) { sb.Append(tmp); } else { sb.Append(tmp.Substring(ln)); } lm.updateTerminalLine(10, sb.ToString()); switch (_mode) { case _Text: lm.updateStatusFMODE("TXT"); break; case _Number: lm.updateStatusFMODE("NUM"); break; default: lm.updateStatusFMODE(" "); break; } lm.requestUpdate(); }
protected virtual void updateDisplay(string value) { LCD_Manager lm = _parent.getLCD(); int ln = value.Length - LCD_Manager.SCREEN_COLS + 1; lm.updateTerminalLine(LCD_Manager.SCREEN_ROWS - 2, (ln <= 0)? value: value.Substring(ln)); switch (_mode) { case _Text: lm.updateStatusFMODE("TXT"); lm.updateTerminalLine(LCD_Manager.SCREEN_ROWS - 3, _Question); break; case _Number: lm.updateStatusFMODE("NUM"); lm.updateTerminalLine(LCD_Manager.SCREEN_ROWS - 3, _Question); break; default: lm.updateStatusFMODE(" "); lm.updateTerminalLine(LCD_Manager.SCREEN_ROWS - 3, _Confirmation); break; } lm.requestUpdate(); }
public override void activate(string prevReceiver) { base.activate(prevReceiver); LCD_Manager lm = _parent.getLCD(); lm.updateStatusFMODE(" K "); lm.forcePaint(); }
public override void activate(string prevReceiver) { _nLinesShown = LCD_Manager.SCREEN_ROWS - 1; base.activate(prevReceiver); LCD_Manager lm = _parent.getLCD(); lm.updateStatusFMODE(" "); lm.forcePaint(); }
public override void activate(string prevReceiver) { base.activate(prevReceiver); LCD_Manager lm = _parent.getLCD(); lm.updateStatusFMODE("ADR"); lm.forcePaint(); _text = new StringBuilder(); _text.Append(" "); }
public override void activate(string prevReceiver) { base.activate(prevReceiver); LCD_Manager lm = _parent.getLCD(); lm.updateStatusFMODE("NUM"); lm.forcePaint(); _stackInput = _parent._m_RPN_Stack; _stackInput._DataEntry = new StringBuilder(); _stackInput._DataEntry.Append(' '); _mode = _Whole; }
public override void activate(string prevReceiver) { base.activate(prevReceiver); LCD_Manager lm = _parent.getLCD(); if (prevReceiver.StartsWith("PROG")) { lm.updateTerminalLine(10, _parent._m_Program_Memory.toString()); } lm.updateStatusFMODE("MEM"); lm.forcePaint(); _text = new StringBuilder(); }
public override void activate(string prevReceiver) { _parent.getFunctions().clearStopCondition(); _lastUIUpdate = DateTime.Now; if (_parent._m_backgroundWorker.IsBusy) { _parent._m_backgroundWorker.CancelAsync(); } else { _parent._m_backgroundWorker.RunWorkerAsync(); } base.activate("AUTO_N"); LCD_Manager lm = _parent.getLCD(); lm.updateStatusFMODE("RUN"); lm.forcePaint(); }