public void AddCalcByStr(string calcStr, bool autoShowRes) { CalcLine clc = new CalcLine(calcStr); Add(clc); Redisplay(); }
public void ReplaceCalcByStr(string calcStr, int n) { CalcLine clc = new CalcLine(calcStr); Replace(clc, n); Debug.WriteLine("calcStr: " + calcStr + " n: " + n); //lstDisplay.Items[n] = calcStr; Redisplay(); }
public void Insert(CalcLine newCalc, int n) { Debug.WriteLine("before insert size: " + theCalcs.Count); //CalcLine clc = new CalcLine(newCalc); theCalcs.Insert(n, newCalc); Debug.WriteLine("after insert size: " + theCalcs.Count); //lstDisplay.Items.RemoveAt(n); Redisplay(); }
public void Add(CalcLine cl) { theCalcs.Add(cl); }
public void InsertCalc(string calcStr, int n) { CalcLine clc = new CalcLine(calcStr); Insert(clc, n); }
public void Replace(CalcLine newCalc, int n) { //CalcLine clc = (CalcLine)theCalcs[n]; //clc = newCalc; theCalcs[n] = newCalc; }