Example #1
0
        public void AddCalcByStr(string calcStr, bool autoShowRes)
        {
            CalcLine clc = new CalcLine(calcStr);

            Add(clc);
            Redisplay();
        }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
 public void Add(CalcLine cl)
 {
     theCalcs.Add(cl);
 }
Example #5
0
        public void InsertCalc(string calcStr, int n)
        {
            CalcLine clc = new CalcLine(calcStr);

            Insert(clc, n);
        }
Example #6
0
 public void Replace(CalcLine newCalc, int n)
 {
     //CalcLine clc = (CalcLine)theCalcs[n];
     //clc = newCalc;
     theCalcs[n] = newCalc;
 }