protected override void OnPreRenderComplete(EventArgs e)
        {
            StackViewer.DataSource = Calculator.DisplayStrings();
            StackViewer.DataBind();

            base.OnPreRenderComplete(e);
        }
 protected override void OnPreRenderComplete(EventArgs e)
 {
     base.OnPreRenderComplete(e);
     string[] fourEntries = MainCalculator.GetFourEntries();
     //Decimal[] fourEntries = { 1 , 2, 3, 4};
     StackViewer.DataSource = fourEntries;
     StackViewer.DataBind();
 }
Ejemplo n.º 3
0
 protected override void OnPreRenderComplete(EventArgs e)
 {
     //var calculator = Calculator;
     //Message.Text = calculator.numbers.Peek().ToString();
     string[] numbers = Calculator.last4Used();
     StackViewer.DataSource = numbers;
     StackViewer.DataBind();
     NumberInput.Text = string.Empty;
     base.OnPreRenderComplete(e);
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (IsPostBack)
     {
         string[] fourEntries = MainCalculator.GetFourEntries();
         //Decimal[] fourEntries = { 1 , 2, 3, 4};
         StackViewer.DataSource = fourEntries;
         StackViewer.DataBind();
     }
 }
Ejemplo n.º 5
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     string[] fourEntries = Calculator.GetFourEntries();
     StackViewer.DataSource = fourEntries;
     StackViewer.DataBind();
 }