コード例 #1
0
        private Cell CalculateControl(string type)
        {
            Cell cell = null;

            switch (type.ToLower())
            {
            case "algorithmcalculator":
                cell = new AlgorithmCalculator();
                break;

            case "decimalalgorithmcalculator":
                cell = new DecimalAlgorithmCalculator();
                break;

            case "calculator":
                cell = new Calculator();
                break;

            case "superlabel":
                cell = new SuperLabel();
                break;

            case "label":
                cell = new Label();
                break;

            //case "dbtext"://unit
            //    cell = new DBText();
            //    break;
            case "chart":
                cell = new Chart();
                break;
            }
            return(cell);
        }
コード例 #2
0
 public DecimalAlgorithmCalculator(DecimalAlgorithmCalculator decimalalgorithmcalculator) : base(decimalalgorithmcalculator)
 {
     _precision     = decimalalgorithmcalculator.Precision;
     _bshowwhenzero = decimalalgorithmcalculator.bShowWhenZero;
     _pointlength   = decimalalgorithmcalculator.PointLength;
 }