Beispiel #1
0
 /// <summary>
 /// Method to access our Worker's exposed properties to update
 /// our displayed label totals
 /// </summary>
 private void DisplayPayOutputs()
 {
     lblWorkerCountOutput.Text    = PieceworkWorker.TotalEmployees.ToString();
     lblTotalMessagesOutput.Text  = PieceworkWorker.TotalMessages.ToString();
     lblOverallPayOutput.Text     = PieceworkWorker.TotalPay.ToString("c");
     lblOverallAverageOutput.Text = PieceworkWorker.GetAveragePay().ToString("c");
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     // populate our display labels with database information every time the page is loaded
     lblWorkerCountOutput.Text    = PieceworkWorker.TotalEmployees.ToString();
     lblTotalMessagesOutput.Text  = PieceworkWorker.TotalMessages.ToString();
     lblOverallPayOutput.Text     = PieceworkWorker.TotalPay.ToString("c");
     lblOverallAverageOutput.Text = PieceworkWorker.GetAveragePay().ToString("c");
 }