Ejemplo n.º 1
0
 public static PageCalcViewModel Singleton(PageCalc cp = null)
 {
     if (_singleton == null)
     {
         _singleton = new PageCalcViewModel(cp);
     }
     return(_singleton);
 }
Ejemplo n.º 2
0
        private PageCalcViewModel(PageCalc page_calc)
        {
            _page_calc = page_calc;
            int count = Results.Count;

            Results.Add(
                new DisplayResults()
            {
                result     = new HtmlLabel(),
                resultname = new HtmlLabel("<big>h" + count + "</big>")
            });

            _calculation_buffer.Add("");
        }